Interface SendableEvent

All Known Implementing Classes:
AbstractSendableEvent, SendableBeanEvent, SendableMapEvent

public interface SendableEvent
A wrapper that packages an event up so that it can be sent into the caller-specified runtime. It also provides the scheduling information for this event (send time and schedule slot), so the user can send this event on schedule.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the schedule slot for the entity that created this event
    long
    Get the send time of this event, relative to all the other events sent or read by the same entity
    void
    Send the event into the runtime.
  • Method Details

    • send

      void send(AbstractSender sender)
      Send the event into the runtime.
      Parameters:
      sender - - the sender to send an event
    • getSendTime

      long getSendTime()
      Get the send time of this event, relative to all the other events sent or read by the same entity
      Returns:
      timestamp
    • getScheduleSlot

      long getScheduleSlot()
      Get the schedule slot for the entity that created this event
      Returns:
      schedule slot