org.multiverse.api.exceptions
Class TooManyRetriesException
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.TooManyRetriesException
- All Implemented Interfaces:
- Serializable
public class TooManyRetriesException
- extends RetryException
A RetryException thrown when a Txn is retried too many times. Uncontrolled
retrying could lead to liveness problems like livelocks and starvation.
- Author:
- Peter Veentjer.
- See Also:
TxnFactoryBuilder.setMaxRetries(int),
Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TooManyRetriesException
public TooManyRetriesException(String message)
- Creates a new TooManyRetriesException with the provided message.
- Parameters:
message - the message of the exception.
TooManyRetriesException
public TooManyRetriesException(String message,
Throwable cause)
- Creates a new TooManyRetriesException with the provided message.
- Parameters:
message - the message of the exceptioncause - the cause of the exception
Copyright © 2012. All Rights Reserved.