Package org.apache.cxf.workqueue
Interface WorkQueueManager
- All Known Implementing Classes:
WorkQueueManagerImpl
public interface WorkQueueManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNamedWorkQueue(String name, AutomaticWorkQueue q) Adds a named work queueGet the manager's default work queue.getNamedWorkQueue(String name) Get the named work queue.voidrun()Only returns after workqueue has been shutdown.voidshutdown(boolean processRemainingTasks) Shuts down the manager's work queue.
-
Method Details
-
getAutomaticWorkQueue
AutomaticWorkQueue getAutomaticWorkQueue()Get the manager's default work queue.- Returns:
- AutomaticWorkQueue
-
getNamedWorkQueue
Get the named work queue.- Returns:
- AutomaticWorkQueue
-
addNamedWorkQueue
Adds a named work queue- Parameters:
name-q-
-
shutdown
void shutdown(boolean processRemainingTasks) Shuts down the manager's work queue. IfprocessRemainingTasksis true, waits for the work queue to shutdown before returning.- Parameters:
processRemainingTasks- - whether or not to wait for completion
-
run
void run()Only returns after workqueue has been shutdown.
-