Class RetryCacheCapacityExceededException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.retry.RetryException
                      extended by org.springframework.retry.policy.RetryCacheCapacityExceededException
All Implemented Interfaces:

public class RetryCacheCapacityExceededException
extends RetryException

Exception that indicates that a cache limit was exceeded. This is often a sign of badly or inconsistently implemented hashCode, equals in failed items. Items can then fail repeatedly and appear different to the cache, so they get added over and over again until a limit is reached and this exception is thrown. Consult the documentation of the RetryContextCache in use to determine how to increase the limit if appropriate.

Dave Syer
See Also:
Serialized Form

Constructor Summary
RetryCacheCapacityExceededException(java.lang.String message)
          Constructs a new instance with a message.
RetryCacheCapacityExceededException(java.lang.String msg, java.lang.Throwable nested)
          Constructs a new instance with a message and nested exception.
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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 RetryCacheCapacityExceededException(java.lang.String message)
Constructs a new instance with a message.

message -


public RetryCacheCapacityExceededException(java.lang.String msg,
                                           java.lang.Throwable nested)
Constructs a new instance with a message and nested exception.

msg - the exception message.

Copyright © 2011 SpringSource. All Rights Reserved.