Class SenderThreadPool


public class SenderThreadPool extends DirectSender
Implementation of Sender to send to esper runtime using a thread pool
Author:
Jerry Shea
  • Constructor Details

    • SenderThreadPool

      public SenderThreadPool(int threadPoolSize)
      Ctor.
      Parameters:
      threadPoolSize - size of pool
    • SenderThreadPool

      public SenderThreadPool(ExecutorService executorService)
      Ctor.
      Parameters:
      executorService - threadpool to use
  • Method Details

    • sendEvent

      public void sendEvent(Object beanToSend)
      Send an event.
      Parameters:
      beanToSend - event to send
    • sendEvent

      public void sendEvent(Map mapToSend, String eventTypeName)
      Send an event.
      Parameters:
      mapToSend - event to send
      eventTypeName - name of event type