public interface ParallelWorkQueueCfg extends WorkQueueCfg
The Parallel Work Queue is a type of work queue that uses a number of worker threads that watch a queue and pick up an operation to process whenever one becomes available.
Modifier and Type | Method and Description |
---|---|
void |
addParallelChangeListener(ConfigurationChangeListener<ParallelWorkQueueCfg> listener)
Register to be notified when this Parallel Work Queue is changed.
|
Class<? extends ParallelWorkQueueCfg> |
configurationClass()
Gets the configuration class associated with this Parallel Work Queue.
|
String |
getJavaClass()
Gets the "java-class" property.
|
Integer |
getNumWorkerThreads()
Gets the "num-worker-threads" property.
|
void |
removeParallelChangeListener(ConfigurationChangeListener<ParallelWorkQueueCfg> listener)
Deregister an existing Parallel Work Queue configuration change listener.
|
addChangeListener, removeChangeListener
dn
Class<? extends ParallelWorkQueueCfg> configurationClass()
configurationClass
in interface Configuration
configurationClass
in interface WorkQueueCfg
void addParallelChangeListener(ConfigurationChangeListener<ParallelWorkQueueCfg> listener)
listener
- The Parallel Work Queue configuration change listener.void removeParallelChangeListener(ConfigurationChangeListener<ParallelWorkQueueCfg> listener)
listener
- The Parallel Work Queue configuration change listener.String getJavaClass()
Specifies the fully-qualified name of the Java class that provides the Parallel Work Queue implementation.
getJavaClass
in interface WorkQueueCfg
Integer getNumWorkerThreads()
Specifies the number of worker threads to be used for processing operations placed in the queue.
If the value is increased, the additional worker threads are created immediately. If the value is reduced, the appropriate number of threads are destroyed as operations complete processing.
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.