|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.apache.cxf.workqueue.AutomaticWorkQueueImpl
public class AutomaticWorkQueueImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor |
|---|
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy |
| Method Summary | |
|---|---|
void |
execute(java.lang.Runnable work,
long timeout)
Submits a work item for execution at some time in the future, waiting for up to a specified amount of time for the item to be accepted. |
long |
getSize()
Gets the current size of the backing queue. |
boolean |
isEmpty()
|
void |
schedule(java.lang.Runnable work,
long delay)
Schedules a work item for execution at some time in the future. |
void |
shutdown(boolean processRemainingWorkItems)
Initiates an orderly shutdown. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.concurrent.ThreadPoolExecutor |
|---|
afterExecute, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated |
| Methods inherited from class java.util.concurrent.AbstractExecutorService |
|---|
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.cxf.workqueue.AutomaticWorkQueue |
|---|
isShutdown |
| Methods inherited from interface java.util.concurrent.Executor |
|---|
execute |
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public void execute(java.lang.Runnable work,
long timeout)
WorkQueue
execute in interface WorkQueuework - the workitem to submit for execution.timeout - the maximum amount of time (in milliseconds) to wait for it to be accepted.
public void schedule(java.lang.Runnable work,
long delay)
WorkQueue
schedule in interface WorkQueuework - the task to submit for execution.delay - the delay before the task is executedpublic void shutdown(boolean processRemainingWorkItems)
AutomaticWorkQueueprocessRemainingWorkItems
is true, waits for all active items to finish execution before returning, otherwise returns
immediately after removing all non active items from the queue.
shutdown in interface AutomaticWorkQueuepublic long getSize()
public boolean isEmpty()
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||