Package org.apache.cxf.bus.managers
Class WorkQueueManagerImpl
java.lang.Object
org.apache.cxf.bus.managers.WorkQueueManagerImpl
- All Implemented Interfaces:
WorkQueueManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
addNamedWorkQueue
(String name, AutomaticWorkQueue q) Adds a named work queueGet the manager's default work queue.getBus()
getNamedWorkQueue
(String name) Get the named work queue.void
run()
Only returns after workqueue has been shutdown.final void
void
shutdown
(boolean processRemainingTasks) Shuts down the manager's work queue.
-
Field Details
-
DEFAULT_QUEUE_NAME
- See Also:
-
DEFAULT_WORKQUEUE_BEAN_NAME
- See Also:
-
-
Constructor Details
-
WorkQueueManagerImpl
public WorkQueueManagerImpl() -
WorkQueueManagerImpl
-
-
Method Details
-
getBus
-
setBus
-
getAutomaticWorkQueue
Description copied from interface:WorkQueueManager
Get the manager's default work queue.- Specified by:
getAutomaticWorkQueue
in interfaceWorkQueueManager
- Returns:
- AutomaticWorkQueue
-
shutdown
public void shutdown(boolean processRemainingTasks) Description copied from interface:WorkQueueManager
Shuts down the manager's work queue. IfprocessRemainingTasks
is true, waits for the work queue to shutdown before returning.- Specified by:
shutdown
in interfaceWorkQueueManager
- 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 interfaceWorkQueueManager
-
getNamedWorkQueue
Description copied from interface:WorkQueueManager
Get the named work queue.- Specified by:
getNamedWorkQueue
in interfaceWorkQueueManager
- Returns:
- AutomaticWorkQueue
-
addNamedWorkQueue
Description copied from interface:WorkQueueManager
Adds a named work queue- Specified by:
addNamedWorkQueue
in interfaceWorkQueueManager
-