Package org.apache.cxf.bus.managers
Class WorkQueueManagerImpl
java.lang.Object
org.apache.cxf.bus.managers.WorkQueueManagerImpl
- All Implemented Interfaces:
WorkQueueManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddNamedWorkQueue(String name, AutomaticWorkQueue q) Adds a named work queueGet the manager's default work queue.getBus()getNamedWorkQueue(String name) Get the named work queue.voidrun()Only returns after workqueue has been shutdown.final voidvoidshutdown(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:WorkQueueManagerGet the manager's default work queue.- Specified by:
getAutomaticWorkQueuein interfaceWorkQueueManager- Returns:
- AutomaticWorkQueue
-
shutdown
public void shutdown(boolean processRemainingTasks) Description copied from interface:WorkQueueManagerShuts down the manager's work queue. IfprocessRemainingTasksis true, waits for the work queue to shutdown before returning.- Specified by:
shutdownin interfaceWorkQueueManager- Parameters:
processRemainingTasks- - whether or not to wait for completion
-
run
public void run()Description copied from interface:WorkQueueManagerOnly returns after workqueue has been shutdown.- Specified by:
runin interfaceWorkQueueManager
-
getNamedWorkQueue
Description copied from interface:WorkQueueManagerGet the named work queue.- Specified by:
getNamedWorkQueuein interfaceWorkQueueManager- Returns:
- AutomaticWorkQueue
-
addNamedWorkQueue
Description copied from interface:WorkQueueManagerAdds a named work queue- Specified by:
addNamedWorkQueuein interfaceWorkQueueManager
-