com.espertech.esperio
Class SendableBeanEvent

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

public class SendableBeanEvent
extends AbstractSendableEvent

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


Constructor Summary
SendableBeanEvent(java.util.Map<java.lang.String,java.lang.Object> mapToSend, java.lang.Class beanClass, java.lang.String eventTypeName, long timestamp, com.espertech.esper.schedule.ScheduleSlot scheduleSlot)
          Converts mapToSend to an instance of beanClass
 
Method Summary
 void send(AbstractSender sender)
          Send the event into the runtime.
 java.lang.String toString()
           
 
Methods inherited from class com.espertech.esperio.AbstractSendableEvent
getScheduleSlot, getSendTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SendableBeanEvent

public SendableBeanEvent(java.util.Map<java.lang.String,java.lang.Object> mapToSend,
                         java.lang.Class beanClass,
                         java.lang.String eventTypeName,
                         long timestamp,
                         com.espertech.esper.schedule.ScheduleSlot scheduleSlot)
Converts mapToSend to an instance of beanClass

Parameters:
mapToSend - - the map containing data to send into the runtime
beanClass - - type of the bean to create from mapToSend
eventTypeName - - the event type name 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(AbstractSender sender)
Description copied from interface: SendableEvent
Send the event into the runtime.

Specified by:
send in interface SendableEvent
Specified by:
send in class AbstractSendableEvent
Parameters:
sender - - the sender to send an event

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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