T - exception checking predicate typepublic static final class TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory<T extends Predicate<Throwable>> extends Object implements RequestRetryPolicyFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory.Builder<T extends Predicate<Throwable>>
|
| Constructor and Description |
|---|
InfiniteRetryPolicyFactory(long requestTimeout,
long operationTimeout,
long delay,
T callback)
Basic constructor with timeout and delay.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends Predicate<Throwable>> |
builder(T callback)
Create a builder for this factory
|
RequestRetryPolicy |
create()
Instantiate a new request retry policy instance.
|
T |
getCallback()
Getter for exception handler
|
long |
getDelay()
Getter for delay
|
long |
getOperationTimeout()
Getter for operation timeout
|
long |
getRequestTimeout()
Getter for request timout
|
public InfiniteRetryPolicyFactory(long requestTimeout,
long operationTimeout,
long delay,
T callback)
requestTimeout - timeout for one retry attempt, in millisecondsoperationTimeout - timeout for the whole operation, in millisecondsdelay - delay between retry attempts, in millisecondscallback - predicate checking whether the given exception may be retriedpublic static <T extends Predicate<Throwable>> TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory.Builder<T> builder(T callback)
T - exception checking callback function typecallback - predicate checking whether the given exception may be retriedpublic RequestRetryPolicy create()
RequestRetryPolicyFactorycreate in interface RequestRetryPolicyFactorypublic T getCallback()
public long getDelay()
public long getRequestTimeout()
public long getOperationTimeout()
Copyright © 2025 Picodata. All rights reserved.