public class WorkQueueDescriptor extends Object implements Descriptor
WorkManager
queue configuration.Modifier and Type | Field and Description |
---|---|
static String |
ALL_QUEUES |
Integer |
capacity
When specified, make the blocking queue bounded, so submission will block until space become available.
|
Set<String> |
categories |
static int |
DEFAULT_CAPACITY |
static int |
DEFAULT_CLEAR_COMPLETED_AFTER_SECONDS |
static int |
DEFAULT_MAX_THREADS |
String |
id |
Integer |
maxThreads |
String |
name |
Boolean |
processing |
Boolean |
queuing |
UNIQUE_DESCRIPTOR_ID
Constructor and Description |
---|
WorkQueueDescriptor() |
Modifier and Type | Method and Description |
---|---|
int |
getCapacity() |
String |
getId()
The descriptor id, descriptors with same id are merged.
|
int |
getMaxThreads() |
boolean |
isProcessingEnabled()
Whether processing of work instances from this queue is enabled for this Nuxeo instance.
|
boolean |
isQueuingEnabled()
Whether queuing of work instances to this queue is enabled for this Nuxeo instance.
|
Descriptor |
merge(Descriptor o)
Returns a descriptor representing
other merged into this |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
doesRemove
public static final String ALL_QUEUES
public static final int DEFAULT_MAX_THREADS
public static final int DEFAULT_CLEAR_COMPLETED_AFTER_SECONDS
public static final int DEFAULT_CAPACITY
public Boolean processing
public Integer maxThreads
public Set<String> categories
public WorkQueueDescriptor()
public String getId()
Descriptor
To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden toString()
for exemple.
getId
in interface Descriptor
public boolean isQueuingEnabled()
public boolean isProcessingEnabled()
public int getMaxThreads()
public int getCapacity()
public Descriptor merge(Descriptor o)
Descriptor
other
merged into this
Default implementation returns other
.
merge
in interface Descriptor
Copyright © 2019 Nuxeo. All rights reserved.