Package com.espertech.esperio.csv
Class AbstractSendableEvent
java.lang.Object
com.espertech.esperio.csv.AbstractSendableEvent
- All Implemented Interfaces:
SendableEvent
- Direct Known Subclasses:
SendableBeanEvent
,SendableMapEvent
Base class for sendable event, provides timestamp and schedule slot.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the schedule slot for the entity that created this eventlong
Get the send time of this event, relative to all the other events sent or read by the same entityabstract void
send
(AbstractSender sender) Send the event into the runtime.
-
Constructor Details
-
AbstractSendableEvent
public AbstractSendableEvent(long timestamp, long scheduleSlot) Ctor.- Parameters:
timestamp
- to sendscheduleSlot
- the schedule slot assigned by scheduling service
-
-
Method Details
-
send
Description copied from interface:SendableEvent
Send the event into the runtime.- Specified by:
send
in interfaceSendableEvent
- 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 interfaceSendableEvent
- 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 interfaceSendableEvent
- Returns:
- timestamp
-