Package org.nuxeo.ecm.core.work.api
Class WorkQueueDescriptor
java.lang.Object
org.nuxeo.ecm.core.work.api.WorkQueueDescriptor
- All Implemented Interfaces:
Descriptor
Descriptor for a
WorkManager
queue configuration.- Since:
- 5.6
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
When specified, make the blocking queue bounded, so submission will block until space become available.static final int
static final int
static final int
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getId()
The descriptor id, descriptors with same id are merged.int
boolean
Whether processing of work instances from this queue is enabled for this Nuxeo instance.boolean
Whether queuing of work instances to this queue is enabled for this Nuxeo instance.merge
(Descriptor o) Returns a descriptor representingother
merged intothis
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
Field Details
-
ALL_QUEUES
- See Also:
-
DEFAULT_MAX_THREADS
public static final int DEFAULT_MAX_THREADS- See Also:
-
DEFAULT_CLEAR_COMPLETED_AFTER_SECONDS
public static final int DEFAULT_CLEAR_COMPLETED_AFTER_SECONDS- See Also:
-
DEFAULT_CAPACITY
public static final int DEFAULT_CAPACITY- See Also:
-
id
-
queuing
-
processing
-
name
-
maxThreads
-
categories
-
capacity
When specified, make the blocking queue bounded, so submission will block until space become available. This option can not be used with a priority queue.- Since:
- 5.7
-
-
Constructor Details
-
WorkQueueDescriptor
public WorkQueueDescriptor()
-
-
Method Details
-
getId
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
isQueuingEnabled
public boolean isQueuingEnabled()Whether queuing of work instances to this queue is enabled for this Nuxeo instance. -
isProcessingEnabled
public boolean isProcessingEnabled()Whether processing of work instances from this queue is enabled for this Nuxeo instance. -
getMaxThreads
public int getMaxThreads() -
getCapacity
public int getCapacity() -
merge
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-
toString
-