public final class AsyncTreeQueue
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
separateLimitForEachTree
Whether to use threads mount limit for each separate asynchronous tree or for all existing asynchronous trees.
|
static int |
threadsAmount
Maximum threads amount to run all asynchronous trees requests in.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable runnable)
Executes runnable using this queue.
|
static void |
execute(WebAsyncTree asyncTree,
java.lang.Runnable runnable)
Executes runnable using queue for the specified asynchronous tree.
|
static AsyncTreeQueue |
getInstance(WebAsyncTree asyncTree)
Returns an instance of queue for the specified asynchronous tree.
|
void |
setMaximumThreadsAmount(int amount)
Sets maximum threads amount for this queue.
|
static void |
setMaximumThreadsAmount(WebAsyncTree asyncTree,
int amount)
Sets maximum threads amount for the specified asynchronous tree.
|
void |
shutdown()
Shutdowns this queue.
|
public static int threadsAmount
public static boolean separateLimitForEachTree
public static void setMaximumThreadsAmount(WebAsyncTree asyncTree, int amount)
asyncTree - asynchronous tree to processamount - new maximum threads amountpublic static void execute(WebAsyncTree asyncTree, java.lang.Runnable runnable)
asyncTree - asynchronous tree to processrunnable - runnable to executepublic static AsyncTreeQueue getInstance(WebAsyncTree asyncTree)
asyncTree - asynchronous tree to processpublic void setMaximumThreadsAmount(int amount)
amount - maximum threads amount for this queuepublic void shutdown()
public void execute(java.lang.Runnable runnable)
runnable - runnable to execute