org.springframework.batch.retry.policy
Class RetryCacheCapacityExceededException

java.lang.Object
  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.batch.retry.RetryException
                      extended by org.springframework.batch.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:
Serialized Form

Constructor Summary
RetryCacheCapacityExceededException(String message)
          Constructs 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, 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

RetryCacheCapacityExceededException

public RetryCacheCapacityExceededException(String message)
Constructs a new instance with a message.

Parameters:
message -

RetryCacheCapacityExceededException

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

Parameters:
msg - the exception message.


Copyright © 2009 SpringSource. All Rights Reserved.