Package com.couchbase.client.core.retry
Class ProtostellarRequestBehaviour
java.lang.Object
com.couchbase.client.core.retry.ProtostellarRequestBehaviour
Determines what to do with a request.
Exactly one of these conditions must be true:
- retryDuration is non-null, indicating the operation should be retried - exception is non-null, indicating the operation should be failed to the user - returnNull is true, indicating the operation should succeed and return null to the user - if all the above are false, a non-null success (operation-dependent) is returned to the user
-
Method Summary
Modifier and TypeMethodDescription@Nullable RuntimeExceptionstatic ProtostellarRequestBehaviourfail(RuntimeException err) static ProtostellarRequestBehaviour@Nullable Durationbooleanstatic ProtostellarRequestBehavioursuccess()static ProtostellarRequestBehaviourtoString()