Package com.espertech.esperio.csv
Class SenderThreadPool
java.lang.Object
com.espertech.esperio.csv.AbstractSender
com.espertech.esperio.csv.DirectSender
com.espertech.esperio.csv.SenderThreadPool
Implementation of Sender to send to esper runtime using a thread pool
- Author:
- Jerry Shea
-
Field Summary
Fields inherited from class com.espertech.esperio.csv.AbstractSender
runtime
-
Constructor Summary
ConstructorDescriptionSenderThreadPool
(int threadPoolSize) Ctor.SenderThreadPool
(ExecutorService executorService) Ctor. -
Method Summary
Methods inherited from class com.espertech.esperio.csv.DirectSender
onFinish, sendEvent, sendEvent
Methods inherited from class com.espertech.esperio.csv.AbstractSender
setRuntime
-
Constructor Details
-
SenderThreadPool
public SenderThreadPool(int threadPoolSize) Ctor.- Parameters:
threadPoolSize
- size of pool
-
SenderThreadPool
Ctor.- Parameters:
executorService
- threadpool to use
-
-
Method Details
-
sendEvent
Send an event.- Parameters:
beanToSend
- event to send
-
sendEvent
Send an event.- Parameters:
mapToSend
- event to sendeventTypeName
- name of event type
-