Package org.springframework.retry.policy
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
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 Summary
ConstructorDescriptionConstructs a new instance with a message.RetryCacheCapacityExceededException
(String msg, Throwable nested) Constructs a new instance with a message and nested exception. -
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RetryCacheCapacityExceededException
Constructs a new instance with a message.- Parameters:
message
- the message sent when creating the exception
-
RetryCacheCapacityExceededException
Constructs a new instance with a message and nested exception.- Parameters:
msg
- the exception message.nested
- the nested exception
-