|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csstudio.java.thread.ExecutionService
public class ExecutionService
Service for the execution of asynchronous tasks using thread pools.
Method Summary | |
---|---|
void |
executeWithHighPriority(java.lang.Runnable runnable)
Executes the specified runnable with high priority. |
void |
executeWithLowPriority(java.lang.Runnable runnable)
Executes the specified runnable with normal priority. |
void |
executeWithNormalPriority(java.lang.Runnable runnable)
Executes the specified runnable with normal priority. |
int |
getHighPriorityQueueSize()
Returns the number of runnables waiting for execution with high priority. |
static ExecutionService |
getInstance()
Returns the singleton instance. |
int |
getLowPriorityQueueSize()
Returns the number of runnables waiting for execution with low priority. |
int |
getNormalPriorityQueueSize()
Returns the number of runnables waiting for execution with normal priority. |
java.util.concurrent.ScheduledExecutorService |
getScheduledExecutorService()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ExecutionService getInstance()
public void executeWithHighPriority(java.lang.Runnable runnable)
runnable
- the runnablepublic void executeWithNormalPriority(java.lang.Runnable runnable)
runnable
- the runnablepublic int getHighPriorityQueueSize()
public int getNormalPriorityQueueSize()
public int getLowPriorityQueueSize()
public void executeWithLowPriority(java.lang.Runnable runnable)
runnable
- the runnablepublic java.util.concurrent.ScheduledExecutorService getScheduledExecutorService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |