Apache CXF API

org.apache.cxf.workqueue
Class WorkQueueManagerImpl

java.lang.Object
  extended by org.apache.cxf.workqueue.WorkQueueManagerImpl
All Implemented Interfaces:
WorkQueueManager

public class WorkQueueManagerImpl
extends java.lang.Object
implements WorkQueueManager


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.cxf.workqueue.WorkQueueManager
WorkQueueManager.ThreadingModel
 
Constructor Summary
WorkQueueManagerImpl()
           
 
Method Summary
 AutomaticWorkQueue getAutomaticWorkQueue()
          Get the manager's work queue.
 Bus getBus()
           
 WorkQueueManager.ThreadingModel getThreadingModel()
          Get the threading model.
 void register()
           
 void run()
          Only returns after workqueue has been shutdown.
 void setBus(Bus bus)
           
 void setThreadingModel(WorkQueueManager.ThreadingModel model)
          Set the threading model.
 void shutdown(boolean processRemainingTasks)
          Shuts down the manager's work queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkQueueManagerImpl

public WorkQueueManagerImpl()
Method Detail

getBus

public Bus getBus()

setBus

public void setBus(Bus bus)

register

@PostConstruct
public void register()

getAutomaticWorkQueue

public AutomaticWorkQueue getAutomaticWorkQueue()
Description copied from interface: WorkQueueManager
Get the manager's work queue.

Specified by:
getAutomaticWorkQueue in interface WorkQueueManager
Returns:
AutomaticWorkQueue

getThreadingModel

public WorkQueueManager.ThreadingModel getThreadingModel()
Description copied from interface: WorkQueueManager
Get the threading model.

Specified by:
getThreadingModel in interface WorkQueueManager
Returns:
ThreadingModel - either SINGLE_THREADED or MULTI_THREADED.

setThreadingModel

public void setThreadingModel(WorkQueueManager.ThreadingModel model)
Description copied from interface: WorkQueueManager
Set the threading model.

Specified by:
setThreadingModel in interface WorkQueueManager
Parameters:
model - either SINGLE_THREADED or MULTI_THREADED.

shutdown

public void shutdown(boolean processRemainingTasks)
Description copied from interface: WorkQueueManager
Shuts down the manager's work queue. If processRemainingTasks is true, waits for the work queue to shutdown before returning.

Specified by:
shutdown in interface WorkQueueManager
Parameters:
processRemainingTasks - - whether or not to wait for completion

run

public void run()
Description copied from interface: WorkQueueManager
Only returns after workqueue has been shutdown.

Specified by:
run in interface WorkQueueManager

Apache CXF API

Apache CXF