public class SqlRetryCallProperties extends Object
SqlRetryHandler.| Constructor and Description |
|---|
SqlRetryCallProperties() |
| Modifier and Type | Method and Description |
|---|---|
RetryPropagation |
getRetryPropagation() |
String |
toString() |
SqlRetryCallProperties |
withCallerId(String caller) |
SqlRetryCallProperties |
withLockInternally(boolean lockInternally) |
SqlRetryCallProperties |
withRetryOnDuplicateKey(boolean retryOnDuplicateKey) |
SqlRetryCallProperties |
withRetryPropagation(RetryPropagation retryPropagation) |
public SqlRetryCallProperties withCallerId(String caller)
caller - Sets the caller id to use during the retry-call. This is usually the method name and its parameters.public SqlRetryCallProperties withRetryOnDuplicateKey(boolean retryOnDuplicateKey)
retryOnDuplicateKey - Indicates if the call should be retried on duplicate key error, false otherwise.
The default value is false.public SqlRetryCallProperties withLockInternally(boolean lockInternally)
lockInternally - Indicates if the internal (derby-related) lock mechanism has to be used during the retry-call.
The default value is false.public SqlRetryCallProperties withRetryPropagation(RetryPropagation retryPropagation)
retryPropagation - The RetryPropagation to use during the retry-call execution.public RetryPropagation getRetryPropagation()
Copyright © 2024 The Apache Software Foundation. All rights reserved.