Package com.couchbase.client.core.retry
Class ProtostellarRequestBehaviour
- java.lang.Object
-
- com.couchbase.client.core.retry.ProtostellarRequestBehaviour
-
-
Constructor Summary
Constructors Constructor Description ProtostellarRequestBehaviour(Duration retryDuration, RuntimeException exception)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RuntimeException
exception()
static ProtostellarRequestBehaviour
fail(RuntimeException err)
static ProtostellarRequestBehaviour
retry(Duration retryDuration)
Duration
retryDuration()
static ProtostellarRequestBehaviour
success()
-
-
-
Constructor Detail
-
ProtostellarRequestBehaviour
public ProtostellarRequestBehaviour(@Nullable Duration retryDuration, @Nullable RuntimeException exception)
-
-
Method Detail
-
retry
public static ProtostellarRequestBehaviour retry(Duration retryDuration)
-
fail
public static ProtostellarRequestBehaviour fail(RuntimeException err)
-
success
public static ProtostellarRequestBehaviour success()
-
exception
@Nullable public RuntimeException exception()
-
-