public static interface RemotePluginServerFactory.EventNotificationPoolStep
| Modifier and Type | Method and Description |
|---|---|
RemotePluginServerFactory.BuilderStep |
usingDefaultEventNotificationPool()
Configures the plugin to use the default pool for events notification.
|
RemotePluginServerFactory.BuilderStep |
usingEventNotificationPool(java.util.concurrent.ExecutorService eventNotificationPool)
Configures the plugin to use a custom thread pool for events notification.
|
RemotePluginServerFactory.BuilderStep usingDefaultEventNotificationPool()
The thread pool used by default is a Executors.newCachedThreadPool(). From the
documentation, "it creates new threads as needed, but will reuse previously constructed
threads when they are available."
RemotePluginServerFactory.BuilderStep usingEventNotificationPool(java.util.concurrent.ExecutorService eventNotificationPool)
The custom pool should be flexible enough to handle many concurrent tasks as each ReaderEvent and PluginEvent are executed asynchronously.
eventNotificationPool - non nullable instance of a executor service