Package org.nuxeo.lib.stream.computation
Class ComputationPolicy
java.lang.Object
org.nuxeo.lib.stream.computation.ComputationPolicy
Defines how a computation should handle the retries, fallback and batching if any.
- Since:
- 10.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final Duration
static final net.jodah.failsafe.RetryPolicy<Object>
static final ComputationPolicy
protected final net.jodah.failsafe.RetryPolicy<Object>
protected final boolean
protected final int
-
Constructor Summary
-
Method Summary
-
Field Details
-
NO_RETRY
-
NONE
-
retryPolicy
-
batchCapacity
protected final int batchCapacity -
batchThreshold
-
skipFailure
protected final boolean skipFailure -
skipFirstFailures
protected final int skipFirstFailures
-
-
Constructor Details
-
ComputationPolicy
-
-
Method Details
-
getRetryPolicy
-
getBatchCapacity
public int getBatchCapacity() -
getBatchThreshold
-
continueOnFailure
public boolean continueOnFailure() -
getSkipFirstFailures
public int getSkipFirstFailures() -
isSkipFailure
Deprecated.since 10.3 usecontinueOnFailure()
instead -
toString
-
continueOnFailure()
instead