Class ComputationPolicy


  • public class ComputationPolicy
    extends Object
    Defines how a computation should handle the retries, fallback and batching if any.
    Since:
    10.3
    • Field Detail

      • NO_RETRY

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

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

        protected final int batchCapacity
      • batchThreshold

        protected final Duration batchThreshold
      • skipFailure

        protected final boolean skipFailure
      • skipFirstFailures

        protected final int skipFirstFailures
    • Method Detail

      • getRetryPolicy

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

        public int getBatchCapacity()
      • getBatchThreshold

        public Duration getBatchThreshold()
      • continueOnFailure

        public boolean continueOnFailure()
      • getSkipFirstFailures

        public int getSkipFirstFailures()