Package com.couchbase.client.core.retry
Class ProtostellarRequestBehaviour
java.lang.Object
com.couchbase.client.core.retry.ProtostellarRequestBehaviour
Determines what to do with a request.
This is an Either - if retryDuration is null, RuntimeException must not be.
Both can be null, in which case the operation succeeded (used for LookupIn).
-
Constructor Summary
ConstructorDescriptionProtostellarRequestBehaviour
(Duration retryDuration, RuntimeException exception) -
Method Summary
Modifier and TypeMethodDescriptionstatic ProtostellarRequestBehaviour
fail
(RuntimeException err) static ProtostellarRequestBehaviour
static ProtostellarRequestBehaviour
success()
-
Constructor Details
-
ProtostellarRequestBehaviour
public ProtostellarRequestBehaviour(@Nullable Duration retryDuration, @Nullable RuntimeException exception)
-
-
Method Details
-
retry
-
fail
-
success
-
retryDuration
-
exception
-