Class StreamProcessorDescriptor.PolicyDescriptor

java.lang.Object
org.nuxeo.runtime.stream.StreamProcessorDescriptor.PolicyDescriptor
All Implemented Interfaces:
Descriptor
Enclosing class:
StreamProcessorDescriptor

public static class StreamProcessorDescriptor.PolicyDescriptor extends Object implements Descriptor
  • Field Details

    • DEFAULT_MAX_RETRIES

      public static final int DEFAULT_MAX_RETRIES
      See Also:
    • DEFAULT_DELAY

      public static final Duration DEFAULT_DELAY
    • DEFAULT_MAX_DELAY

      public static final Duration DEFAULT_MAX_DELAY
    • DEFAULT_BATCH_CAPACITY

      public static final Integer DEFAULT_BATCH_CAPACITY
    • DEFAULT_BATCH_THRESHOLD

      public static final Duration DEFAULT_BATCH_THRESHOLD
    • name

      public String name
    • maxRetries

      public Integer maxRetries
    • delay

      public Duration delay
    • maxDelay

      public Duration maxDelay
    • continueOnFailure

      public Boolean continueOnFailure
    • skipFirstFailures

      public Integer skipFirstFailures
    • klass

      public Class<? extends StreamComputationPolicy> klass
    • batchCapacity

      public Integer batchCapacity
    • batchThreshold

      public Duration batchThreshold
  • Constructor Details

    • PolicyDescriptor

      public PolicyDescriptor()
  • Method Details

    • 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
    • getSkipFirstFailures

      protected int getSkipFirstFailures()
    • createPolicyBuilder

      public ComputationPolicyBuilder createPolicyBuilder()