public class WorkQueueManagerImpl extends Object implements WorkQueueManager
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_QUEUE_NAME |
static String |
DEFAULT_WORKQUEUE_BEAN_NAME |
Constructor and Description |
---|
WorkQueueManagerImpl() |
WorkQueueManagerImpl(Bus b) |
Modifier and Type | Method and Description |
---|---|
void |
addNamedWorkQueue(String name,
AutomaticWorkQueue q)
Adds a named work queue
|
AutomaticWorkQueue |
getAutomaticWorkQueue()
Get the manager's default work queue.
|
Bus |
getBus() |
AutomaticWorkQueue |
getNamedWorkQueue(String name)
Get the named work queue.
|
void |
run()
Only returns after workqueue has been shutdown.
|
void |
setBus(Bus bus) |
void |
shutdown(boolean processRemainingTasks)
Shuts down the manager's work queue.
|
public static final String DEFAULT_QUEUE_NAME
public static final String DEFAULT_WORKQUEUE_BEAN_NAME
public WorkQueueManagerImpl()
public WorkQueueManagerImpl(Bus b)
public Bus getBus()
public final void setBus(Bus bus)
public AutomaticWorkQueue getAutomaticWorkQueue()
WorkQueueManager
getAutomaticWorkQueue
in interface WorkQueueManager
public void shutdown(boolean processRemainingTasks)
WorkQueueManager
processRemainingTasks
is true, waits for the work queue to
shutdown before returning.shutdown
in interface WorkQueueManager
processRemainingTasks
- - whether or not to wait for completionpublic void run()
WorkQueueManager
run
in interface WorkQueueManager
public AutomaticWorkQueue getNamedWorkQueue(String name)
WorkQueueManager
getNamedWorkQueue
in interface WorkQueueManager
public final void addNamedWorkQueue(String name, AutomaticWorkQueue q)
WorkQueueManager
addNamedWorkQueue
in interface WorkQueueManager
Apache CXF