Class EventBackend


  • public abstract class EventBackend
    extends java.lang.Object
    EventBackend abstraction to create events for instrumented entities.
    • Field Detail

      • NONE

        public static final EventBackend NONE
        Empty no-op EventBackend.
    • Constructor Detail

      • EventBackend

        public EventBackend()
    • Method Detail

      • eventsFor

        public abstract EventFactory eventsFor​(Identity identity)
        Create an EventFactory for an instrumented entity with the given Identity.
        Parameters:
        identity - identity of instrumented event
        Returns:
        event factory for the instrumented entity
      • usesIdentity

        public boolean usesIdentity()
        Override and set to false if the event backend doesn't use the identity. This will avoid creating multiple events for multiple identities.
        Returns:
        whether this event backend uses the identity