public final class RetryStrategies extends Object
RetryStrategy
s.Modifier and Type | Method and Description |
---|---|
static RetryStrategy |
noRetries() |
static RetryStrategy |
retryOnConflict(int maxRetries,
long delayInMs) |
public static RetryStrategy retryOnConflict(int maxRetries, long delayInMs)
maxRetries
- max number of retriesdelayInMs
- delay between retries in millisecondsTransactionConflictException
public static RetryStrategy noRetries()
Copyright © 2017 The Apache Software Foundation. All rights reserved.