|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.util.ExecutorsFactory
public class ExecutorsFactory
Stateless Factory to create ExecutorService used in all Atmosphere Component. By default they are
shared amongst all component. To change the behavior, add ApplicationConfig.BROADCASTER_SHARABLE_THREAD_POOLS
| Constructor Summary | |
|---|---|
ExecutorsFactory()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutorsFactory()
| Method Detail |
|---|
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.
ExecutorService
public 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 AtmosphereConfig
ScheduledExecutorService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||