Class ConsumerPolicy

  • Direct Known Subclasses:
    DocumentConsumerPolicy

    public class ConsumerPolicy
    extends Object
    The consumer policy drive the consumer pool and runner.
    Since:
    9.1
    • Field Detail

      • NO_RETRY

        public static final net.jodah.failsafe.RetryPolicy NO_RETRY
      • BOUNDED

        public static final ConsumerPolicy BOUNDED
        Consumer policy that stop on starvation and failure.
      • UNBOUNDED

        public static final ConsumerPolicy UNBOUNDED
        Consumer policy that wait for ever for new message and skip failure.
      • retryPolicy

        protected final net.jodah.failsafe.RetryPolicy retryPolicy
      • skipFailure

        protected final boolean skipFailure
      • waitMessageTimeout

        protected final Duration waitMessageTimeout
      • salted

        protected final boolean salted
      • name

        protected final String name
      • maxThreads

        protected final short maxThreads
    • Method Detail

      • getRetryPolicy

        public net.jodah.failsafe.RetryPolicy getRetryPolicy()
      • continueOnFailure

        public boolean continueOnFailure()
      • getWaitMessageTimeout

        public Duration getWaitMessageTimeout()
      • isSalted

        public boolean isSalted()
      • getName

        public String getName()
      • getMaxThreads

        public short getMaxThreads()