Class AbstractSendableEvent

java.lang.Object
com.espertech.esperio.csv.AbstractSendableEvent
All Implemented Interfaces:
SendableEvent
Direct Known Subclasses:
SendableBeanEvent, SendableMapEvent

public abstract class AbstractSendableEvent extends Object implements SendableEvent
Base class for sendable event, provides timestamp and schedule slot.
  • Constructor Details

    • AbstractSendableEvent

      public AbstractSendableEvent(long timestamp, long scheduleSlot)
      Ctor.
      Parameters:
      timestamp - to send
      scheduleSlot - the schedule slot assigned by scheduling service
  • Method Details

    • send

      public abstract void send(AbstractSender sender)
      Description copied from interface: SendableEvent
      Send the event into the runtime.
      Specified by:
      send in interface SendableEvent
      Parameters:
      sender - - the sender to send an event
    • getScheduleSlot

      public long getScheduleSlot()
      Description copied from interface: SendableEvent
      Get the schedule slot for the entity that created this event
      Specified by:
      getScheduleSlot in interface SendableEvent
      Returns:
      schedule slot
    • getSendTime

      public long getSendTime()
      Description copied from interface: SendableEvent
      Get the send time of this event, relative to all the other events sent or read by the same entity
      Specified by:
      getSendTime in interface SendableEvent
      Returns:
      timestamp