public class ExecutorsFactory extends Object
ExecutorService used in all Atmosphere Component. By default they are
shared amongst all component. To change the behavior, add {
link ApplicationConfig#BROADCASTER_SHARABLE_THREAD_POOLS}| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ASYNC_THREAD |
static int |
DEFAULT_KEEP_ALIVE |
static int |
DEFAULT_MESSAGE_THREAD |
| Constructor and Description |
|---|
ExecutorsFactory() |
| Modifier and Type | Method and Description |
|---|---|
static ExecutorService |
getAsyncOperationExecutor(AtmosphereConfig config,
String name)
Create an
ExecutorService to be used for dispatching I/O events. |
static ExecutorService |
getMessageDispatcher(AtmosphereConfig config,
String name)
Create an
ExecutorService to be used for dispatching messages, not I/O events. |
static ScheduledExecutorService |
getScheduler(AtmosphereConfig config)
Create a
ScheduledExecutorService used ot schedule I/O and non I/O events. |
public static final int DEFAULT_ASYNC_THREAD
public static final int DEFAULT_MESSAGE_THREAD
public static final int DEFAULT_KEEP_ALIVE
public static ExecutorService getMessageDispatcher(AtmosphereConfig config, String name)
ExecutorService to be used for dispatching messages, not I/O events.config - the AtmosphereConfigname - a name to use if shared is false.ExecutorServicepublic static ExecutorService getAsyncOperationExecutor(AtmosphereConfig config, String name)
ExecutorService to be used for dispatching I/O events.config - the AtmosphereConfigname - a name to use if shared is false.ExecutorServicepublic static ScheduledExecutorService getScheduler(AtmosphereConfig config)
ScheduledExecutorService used ot schedule I/O and non I/O events.config - the AtmosphereConfigScheduledExecutorServiceCopyright © 2015. All Rights Reserved.