org.multiverse.api.exceptions
Class TooManyRetriesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.multiverse.api.exceptions.TxnExecutionException
                  extended by org.multiverse.api.exceptions.RetryException
                      extended by 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

Constructor Summary
TooManyRetriesException(String message)
          Creates a new TooManyRetriesException with the provided message.
TooManyRetriesException(String message, Throwable cause)
          Creates a new TooManyRetriesException with the provided message.
 
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

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 exception
cause - the cause of the exception


Copyright © 2012. All Rights Reserved.