org.ehcache.exceptions
Class BulkCacheLoadingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.ehcache.exceptions.CacheLoadingException
                  extended by org.ehcache.exceptions.BulkCacheLoadingException
All Implemented Interfaces:
java.io.Serializable

public class BulkCacheLoadingException
extends CacheLoadingException

Exception thrown by a Cache when the CacheLoaderWriter it uses threw an RuntimeException while bulk loading values for a given set of keys

See Also:
Serialized Form

Constructor Summary
BulkCacheLoadingException(java.util.Map<?,java.lang.Exception> failures, java.util.Map<?,?> successes)
          Constructs a new BulkCacheLoadingException providing the key set that failed, including the exception loading these threw, as well as all keys we managed to load a value for, including the value loaded.
BulkCacheLoadingException(java.lang.String message, java.util.Map<java.lang.Object,java.lang.Exception> failures, java.util.Map<java.lang.Object,java.lang.Object> successes)
          Constructs a new BulkCacheLoadingException providing a message, the key set that failed, including the exception loading these threw, as well as all keys we managed to load a value for, including the value loaded.
 
Method Summary
 java.util.Map<?,java.lang.Exception> getFailures()
          Accessor to all keys that failed loading during a bulk load operation, with the associated Exception encountered
 java.util.Map<?,?> getSuccesses()
          Accessor to all keys that were successfully loaded during a bulk load operation, with the associated loaded value
 
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

BulkCacheLoadingException

public BulkCacheLoadingException(java.util.Map<?,java.lang.Exception> failures,
                                 java.util.Map<?,?> successes)
Constructs a new BulkCacheLoadingException providing the key set that failed, including the exception loading these threw, as well as all keys we managed to load a value for, including the value loaded. This latter set of keys was loaded successfully into the Cache.

Parameters:
failures - the map of keys to failure encountered while loading the values
successes - the map of keys successfully loaded and their associated values

BulkCacheLoadingException

public BulkCacheLoadingException(java.lang.String message,
                                 java.util.Map<java.lang.Object,java.lang.Exception> failures,
                                 java.util.Map<java.lang.Object,java.lang.Object> successes)
Constructs a new BulkCacheLoadingException providing a message, the key set that failed, including the exception loading these threw, as well as all keys we managed to load a value for, including the value loaded. This latter set of keys was loaded successfully into the Cache.

Parameters:
message - the message
failures - the map of keys to failure encountered while loading the values
successes - the map of keys successfully loaded and their associated values
See Also:
BulkCacheLoadingException(java.util.Map, java.util.Map)
Method Detail

getFailures

public java.util.Map<?,java.lang.Exception> getFailures()
Accessor to all keys that failed loading during a bulk load operation, with the associated Exception encountered

Returns:
a map of keys to exception encountered during bulk load

getSuccesses

public java.util.Map<?,?> getSuccesses()
Accessor to all keys that were successfully loaded during a bulk load operation, with the associated loaded value

Returns:
a map of keys to value loaded and installed in the Cache