Class RetryCacheCapacityExceededException

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

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.
Author:
Dave Syer
See Also:
  • Constructor Details

    • RetryCacheCapacityExceededException

      public RetryCacheCapacityExceededException(String message)
      Constructs a new instance with a message.
      Parameters:
      message - the message sent when creating the exception
    • RetryCacheCapacityExceededException

      public RetryCacheCapacityExceededException(String msg, Throwable nested)
      Constructs a new instance with a message and nested exception.
      Parameters:
      msg - the exception message.
      nested - the nested exception