public class RetryError extends ControlFlowError
ControlFlowError thrown when an explicit retry is done on a Txn.
With the {RetryError} it is possible to create blocking transactions.
An example is a transaction wants to pop an item from an empty queue. The Retry is caught by the transaction
handling logic (e.g the TxnExecutor and blocks until either a timeout happens or
an item is placed on the queue.
Txn.retry(),
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static RetryError |
INSTANCE |
| Constructor and Description |
|---|
RetryError(boolean fillStackTrace)
Creates a new Retry Error.
|
getStackTraceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final RetryError INSTANCE
Copyright © 2025. All rights reserved.