Class Event<T>

java.lang.Object
com.northconcepts.datapipeline.eventbus.Event<T>

public class Event<T> extends Object
A method call made on an EventBus publisher, captured with its arguments for delivery to the bus's listeners.
  • Constructor Details

  • Method Details

    • getSequence

      public long getSequence()
      Returns the 1-based order in which this event was published on its bus or 0 if it has not been published.
    • getEventSource

      public Object getEventSource()
      Returns the source the publisher was created with or null if it has none.
    • getEventPublisher

      public Object getEventPublisher()
      Returns the publisher proxy whose method call produced this event.
    • getEventListenerClass

      public Class<T> getEventListenerClass()
      Returns the listener interface whose method was called on the publisher.
    • getTopic

      public Object getTopic()
      Returns the topic the publisher was created with or null if it has none.
    • getMethod

      public Method getMethod()
      Returns the listener method called on the publisher; typed listeners receive the event as a call to the same method.
    • getArguments

      public Object[] getArguments()
      Returns the arguments passed to the listener method or null if the method takes none.
    • toString

      public String toString()
      Overrides:
      toString in class Object