|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.tree.AsyncTreeQueue
public final class AsyncTreeQueue
Asynchronous tree childs loading queue.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int threadsAmount
public static boolean separateLimitForEachTree
Method Detail |
---|
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 process
public void setMaximumThreadsAmount(int amount)
amount
- maximum threads amount for this queuepublic void shutdown()
public void execute(java.lang.Runnable runnable)
runnable
- runnable to execute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |