com.espertech.esperio
Class AbstractSendableEvent

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

public abstract class AbstractSendableEvent
extends java.lang.Object
implements SendableEvent

Base class for sendable event, provides timestamp and schedule slot.


Constructor Summary
AbstractSendableEvent(long timestamp, com.espertech.esper.schedule.ScheduleSlot scheduleSlot)
          Ctor.
 
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
abstract  void send(AbstractSender sender)
          Send the event into the runtime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSendableEvent

public AbstractSendableEvent(long timestamp,
                             com.espertech.esper.schedule.ScheduleSlot scheduleSlot)
Ctor.

Parameters:
timestamp - to send
scheduleSlot - the schedule slot assigned by scheduling service
Method Detail

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 com.espertech.esper.schedule.ScheduleSlot 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

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