Class WorkQueueDescriptor

    • Field Detail

      • DEFAULT_CLEAR_COMPLETED_AFTER_SECONDS

        public static final int DEFAULT_CLEAR_COMPLETED_AFTER_SECONDS
        See Also:
        Constant Field Values
      • processing

        public Boolean processing
      • maxThreads

        public Integer maxThreads
      • capacity

        public Integer 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 Detail

      • WorkQueueDescriptor

        public WorkQueueDescriptor()
    • Method Detail

      • getId

        public String 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 interface Descriptor
      • 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

        public Descriptor merge​(Descriptor o)
        Description copied from interface: Descriptor
        Returns a descriptor representing other merged into this

        Default implementation returns other.

        Specified by:
        merge in interface Descriptor
        Returns:
        the merged descriptor