com.espertech.esperio
Class SendableMapEvent

java.lang.Object
  extended by com.espertech.esperio.SendableMapEvent
All Implemented Interfaces:
SendableEvent

public class SendableMapEvent
extends Object
implements SendableEvent

An implementation of SendableEvent that wraps a Map event for sending into the runtime.


Constructor Summary
SendableMapEvent(Map<String,Object> mapToSend, String eventTypeAlias, 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
 void send(com.espertech.esper.client.EPRuntime runtime)
          Send the event into the runtime.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SendableMapEvent

public SendableMapEvent(Map<String,Object> mapToSend,
                        String eventTypeAlias,
                        long timestamp,
                        com.espertech.esper.schedule.ScheduleSlot scheduleSlot)
Ctor.

Parameters:
mapToSend - - the map to send into the runtime
eventTypeAlias - - the event type alias for the map event
timestamp - - the timestamp for this event
scheduleSlot - - the schedule slot for the entity that created this event
Method Detail

send

public void send(com.espertech.esper.client.EPRuntime runtime)
Description copied from interface: SendableEvent
Send the event into the runtime.

Specified by:
send in interface SendableEvent
Parameters:
runtime - - the runtime to send the event into

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

toString

public String toString()
Overrides:
toString in class Object

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com