Package com.espertech.esperio.csv
Class AbstractSender
java.lang.Object
com.espertech.esperio.csv.AbstractSender
- Direct Known Subclasses:
DirectSender
Sender that abstracts the send processin terms of threading or further pre-processing.
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.espertech.esper.runtime.client.EPEventService
Runtime. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
onFinish()
Indicate that sender should stop.abstract void
sendEvent
(AbstractSendableEvent theEvent, Object beanToSend, String eventTypeName) Send an eventabstract void
sendEvent
(AbstractSendableEvent theEvent, Map mapToSend, String eventTypeName) Send an event.void
setRuntime
(com.espertech.esper.runtime.client.EPEventService runtime) Set the runtimeruntime to use.
-
Field Details
-
runtime
protected com.espertech.esper.runtime.client.EPEventService runtimeRuntime.
-
-
Constructor Details
-
AbstractSender
public AbstractSender()
-
-
Method Details
-
setRuntime
public void setRuntime(com.espertech.esper.runtime.client.EPEventService runtime) Set the runtimeruntime to use.- Parameters:
runtime
- runtime to use
-
sendEvent
public abstract void sendEvent(AbstractSendableEvent theEvent, Object beanToSend, String eventTypeName) Send an event- Parameters:
theEvent
- wrapperbeanToSend
- event objecteventTypeName
- event type name
-
sendEvent
Send an event.- Parameters:
theEvent
- wrappermapToSend
- event objecteventTypeName
- name of event type
-
onFinish
public abstract void onFinish()Indicate that sender should stop.
-