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


Constructor Summary
WorkQueueManagerImpl()
           
 
Method Summary
 void addNamedWorkQueue(java.lang.String name, AutomaticWorkQueue q)
          Adds a named work queue
 AutomaticWorkQueue getAutomaticWorkQueue()
          Get the manager's default work queue.
 Bus getBus()
           
 AutomaticWorkQueue getNamedWorkQueue(java.lang.String name)
          Get the named work queue.
 void register()
           
 void run()
          Only returns after workqueue has been shutdown.
 void setBus(Bus bus)
           
 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 default work queue.

Specified by:
getAutomaticWorkQueue in interface WorkQueueManager
Returns:
AutomaticWorkQueue

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

getNamedWorkQueue

public AutomaticWorkQueue getNamedWorkQueue(java.lang.String name)
Description copied from interface: WorkQueueManager
Get the named work queue.

Specified by:
getNamedWorkQueue in interface WorkQueueManager
Returns:
AutomaticWorkQueue

addNamedWorkQueue

public void addNamedWorkQueue(java.lang.String name,
                              AutomaticWorkQueue q)
Description copied from interface: WorkQueueManager
Adds a named work queue

Specified by:
addNamedWorkQueue in interface WorkQueueManager


Apache CXF