com.espertech.esperio
Class AbstractSender

java.lang.Object
  extended by com.espertech.esperio.AbstractSender
Direct Known Subclasses:
DirectSender

public abstract class AbstractSender
extends java.lang.Object

Sender that abstracts the send processin terms of threading or further pre-processing.


Field Summary
protected  com.espertech.esper.client.EPRuntime runtime
          Runtime.
 
Constructor Summary
AbstractSender()
           
 
Method Summary
abstract  void onFinish()
          Indicate that sender should stop.
abstract  void sendEvent(AbstractSendableEvent theEvent, java.util.Map mapToSend, java.lang.String eventTypeName)
          Send an event.
abstract  void sendEvent(AbstractSendableEvent theEvent, java.lang.Object beanToSend)
          Send an event
 void setRuntime(com.espertech.esper.client.EPRuntime runtime)
          Set the engine runtime to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runtime

protected com.espertech.esper.client.EPRuntime runtime
Runtime.

Constructor Detail

AbstractSender

public AbstractSender()
Method Detail

setRuntime

public void setRuntime(com.espertech.esper.client.EPRuntime runtime)
Set the engine runtime to use.

Parameters:
runtime - runtime to use

sendEvent

public abstract void sendEvent(AbstractSendableEvent theEvent,
                               java.lang.Object beanToSend)
Send an event

Parameters:
theEvent - wrapper
beanToSend - event object

sendEvent

public abstract void sendEvent(AbstractSendableEvent theEvent,
                               java.util.Map mapToSend,
                               java.lang.String eventTypeName)
Send an event.

Parameters:
theEvent - wrapper
mapToSend - event object
eventTypeName - name of event type

onFinish

public abstract void onFinish()
Indicate that sender should stop.


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