Package org.ehcache.spi.loaderwriter
Class BulkCacheLoadingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ehcache.spi.loaderwriter.CacheLoadingException
org.ehcache.spi.loaderwriter.BulkCacheLoadingException
- All Implemented Interfaces:
Serializable
Thrown by a
Cache when its CacheLoaderWriter
fails while bulk loading values.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBulkCacheLoadingException(String message, Map<Object, Exception> failures, Map<Object, Object> successes) Constructs a new exception instance with the given message and maps.BulkCacheLoadingException(Map<?, Exception> failures, Map<?, ?> successes) Constructs aBulkCacheLoadingExceptioninstance with the given maps. -
Method Summary
Modifier and TypeMethodDescriptionReturns the map of keys to exception.Map<?,?> Returns the map of keys to value.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BulkCacheLoadingException
Constructs aBulkCacheLoadingExceptioninstance with the given maps.The two maps are:
- a map from keys to exception thrown while loading,
- a map from keys to value where loading succeeded
- Parameters:
failures- the map of keys to failure encountered while loadingsuccesses- the map of keys successfully loaded and their associated value
-
BulkCacheLoadingException
public BulkCacheLoadingException(String message, Map<Object, Exception> failures, Map<Object, Object> successes) Constructs a new exception instance with the given message and maps.The given two maps are:
- a map from keys to exception thrown while loading,
- a map from keys to value where loading succeeded
- Parameters:
message- the exception messagefailures- the map of keys to failure encountered while loadingsuccesses- the map of keys successfully loaded and their associated value
-
-
Method Details
-
getFailures
Returns the map of keys to exception.- Returns:
- a map of keys to the exception encountered while loading
-
getSuccesses
Returns the map of keys to value.- Returns:
- a map of keys to the value loaded
-