public class SendableBeanEvent extends AbstractSendableEvent
Constructor and Description |
---|
SendableBeanEvent(Map<String,Object> mapToSend,
Class beanClass,
String eventTypeName,
long timestamp,
long scheduleSlot)
Converts mapToSend to an instance of beanClass
|
Modifier and Type | Method and Description |
---|---|
void |
send(AbstractSender sender)
Send the event into the runtime.
|
String |
toString() |
getScheduleSlot, getSendTime
public SendableBeanEvent(Map<String,Object> mapToSend, Class beanClass, String eventTypeName, long timestamp, long scheduleSlot)
mapToSend
- - the map containing data to send into the runtimebeanClass
- - type of the bean to create from mapToSendeventTypeName
- - the event type name for the map eventtimestamp
- - the timestamp for this eventscheduleSlot
- - the schedule slot for the entity that created this eventpublic void send(AbstractSender sender)
SendableEvent
send
in interface SendableEvent
send
in class AbstractSendableEvent
sender
- - the sender to send an event