com.espertech.esperio
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
 com.espertech.esper.schedule.ScheduleSlot getScheduleSlot()
          Get the schedule slot for the entity that created this event
 long getSendTime()
          Get the send time of this event, relative to all the other events sent or read by the same entity
 void send(AbstractSender sender)
          Send the event into the runtime.
 

Method Detail

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

com.espertech.esper.schedule.ScheduleSlot getScheduleSlot()
Get the schedule slot for the entity that created this event

Returns:
schedule slot

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com