org.apache.cxf.workqueue
Class AutomaticWorkQueueImpl
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.apache.cxf.workqueue.AutomaticWorkQueueImpl
- All Implemented Interfaces:
- java.util.concurrent.Executor, java.util.concurrent.ExecutorService, AutomaticWorkQueue, WorkQueue
public class AutomaticWorkQueueImpl
- extends java.util.concurrent.ThreadPoolExecutor
- implements AutomaticWorkQueue
| 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 |
| 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 java.util.concurrent.Executor |
execute |
AutomaticWorkQueueImpl
public AutomaticWorkQueueImpl()
AutomaticWorkQueueImpl
public AutomaticWorkQueueImpl(int max)
AutomaticWorkQueueImpl
public AutomaticWorkQueueImpl(int mqs,
int initialThreads,
int highWaterMark,
int lowWaterMark,
long dequeueTimeout)
setManager
public void setManager(WorkQueueManagerImpl mgr)
getManager
public WorkQueueManager getManager()
setName
public void setName(java.lang.String s)
getName
public java.lang.String getName()
register
@PostConstruct
public void register()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
execute
public void execute(java.lang.Runnable work,
long timeout)
- Specified by:
execute in interface WorkQueue
schedule
public void schedule(java.lang.Runnable work,
long delay)
- Specified by:
schedule in interface WorkQueue
shutdown
public void shutdown(boolean processRemainingWorkItems)
- Specified by:
shutdown in interface AutomaticWorkQueue
getMaxSize
public long getMaxSize()
- Gets the maximum size (capacity) of the backing queue.
- Returns:
- the maximum size (capacity) of the backing queue.
getSize
public long getSize()
- Gets the current size of the backing queue.
- Returns:
- the current size of the backing queue.
isEmpty
public boolean isEmpty()
getHighWaterMark
public int getHighWaterMark()
getLowWaterMark
public int getLowWaterMark()
setHighWaterMark
public void setHighWaterMark(int hwm)
setLowWaterMark
public void setLowWaterMark(int lwm)
Apache CXF