Package org.multiverse.api.exceptions
Class RetryTimeoutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.multiverse.api.exceptions.TxnExecutionException
-
- org.multiverse.api.exceptions.RetryException
-
- org.multiverse.api.exceptions.RetryTimeoutException
-
- All Implemented Interfaces:
java.io.Serializable
public class RetryTimeoutException extends RetryException
ARetryException
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:
- the remaining timeout:
Txn.getRemainingTimeoutNs()
- reading the configured timeout:
TxnConfig.getTimeoutNs()
. - configuring the timeout:
TxnFactoryBuilder.setTimeoutNs(long)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RetryTimeoutException(java.lang.String message)
Creates a new RetryTimeoutException.RetryTimeoutException(java.lang.String message, java.lang.Throwable cause)
Creates a new RetryTimeoutException.
-
-
-
Constructor Detail
-
RetryTimeoutException
public RetryTimeoutException(java.lang.String message)
Creates a new RetryTimeoutException.- Parameters:
message
- the message of the exception.
-
RetryTimeoutException
public RetryTimeoutException(java.lang.String message, java.lang.Throwable cause)
Creates a new RetryTimeoutException.- Parameters:
message
- the message of the exception.cause
- the cause of the exception
-
-