Enum Constant and Description |
---|
ANALYSIS_POOL
- multi-threaded - executed concurrent to server thread - sequential to each other (new tasks are only submitted if thread pool idling to exploit full parallelism)
|
FAST_TRACK_ANALYSIS_POOL
- single-threaded - executed concurrent to server thread - concurrent to each other
|
IO_POOL
- multi-threaded - executed concurrent to server thread - sequential to each other (new tasks are only submitted if thread pool idling to exploit full parallelism)
|
SERVER_THREAD
- single-threaded - executed sequentially on server thread
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.String |
toString()
Alias for
getName() |
static PoolType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PoolType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final PoolType ANALYSIS_POOL
Make sure there are no side-effects to global state.
Side-effects to session state are fine, as there will never be two tasks of the same session be executed concurrently.
public static final PoolType FAST_TRACK_ANALYSIS_POOL
Make sure there are no side-effects to global state.
Side-effects to session state are fine, as there will never be two tasks of the same session be executed concurrently.
public static final PoolType IO_POOL
Make sure there are no side-effects to the state.
Side-effects to session state are fine, as there will never be two tasks of the same session be executed concurrently.
public static final PoolType SERVER_THREAD
SERVER_THREAD tasks should be really quick, as they block the server thread.
public java.lang.String getName()
public java.lang.String toString()
getName()
toString
in class java.lang.Enum<PoolType>
public static PoolType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static PoolType[] values()
for (PoolType c : PoolType.values()) System.out.println(c);