public class SenderThreadPool extends DirectSender
runtime
Constructor and Description |
---|
SenderThreadPool(java.util.concurrent.ExecutorService executorService)
Ctor.
|
SenderThreadPool(int threadPoolSize)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
sendEvent(java.util.Map mapToSend,
java.lang.String eventTypeName)
Send an event.
|
void |
sendEvent(java.lang.Object beanToSend)
Send an event.
|
onFinish, sendEvent, sendEvent
setRuntime
public SenderThreadPool(int threadPoolSize)
threadPoolSize
- size of poolpublic SenderThreadPool(java.util.concurrent.ExecutorService executorService)
executorService
- threadpool to usepublic void sendEvent(java.lang.Object beanToSend)
beanToSend
- event to sendpublic void sendEvent(java.util.Map mapToSend, java.lang.String eventTypeName)
mapToSend
- event to sendeventTypeName
- name of event type