|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.multiverse.api.exceptions.TxnExecutionException
org.multiverse.api.exceptions.RetryException
org.multiverse.api.exceptions.RetryTimeoutException
public class RetryTimeoutException
A RetryException thrown when a transaction times out while it blocks on a retry (so waits for an update).
On a transaction the maximum timeout can be set. When it is set to a bound value (so smaller than Long.MAX_VALUE) all retries that need to block the transaction (so wait till some write happened) will decrement the remaining timeout. When the transaction eventually times out, this Exception is thrown.
For more information see:
Txn.getRemainingTimeoutNs()TxnConfig.getTimeoutNs().TxnFactoryBuilder.setTimeoutNs(long)
| Constructor Summary | |
|---|---|
RetryTimeoutException(String message)
Creates a new RetryTimeoutException. |
|
RetryTimeoutException(String message,
Throwable cause)
Creates a new RetryTimeoutException. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RetryTimeoutException(String message)
message - the message of the exception.
public RetryTimeoutException(String message,
Throwable cause)
message - the message of the exception.cause - the cause of the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||