Interface IEvent

All Known Implementing Classes:
Event, JebClientEvent, JebEvent

public interface IEvent
Base interface for events.
  • Method Details

    • getSource

      IEventSource getSource()
      Get the source that emitted this event.
      Returns:
      the event source, or null if no source is known
    • getType

      Object getType()
      Get the event type.
      Returns:
      the event type
    • getData

      Object getData()
      Get the event payload.
      Returns:
      the event payload, or null if none was provided
    • getTimestamp

      long getTimestamp()
      Get the event creation timestamp.
      Returns:
      epoch-relative timestamp in milliseconds
    • shouldStopPropagation

      boolean shouldStopPropagation()
      Determine whether event propagation should stop.
      Returns:
      true if the event should not be propagated to additional listeners