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
public class BulkCacheLoadingException extends CacheLoadingException
Thrown by aCachewhen itsCacheLoaderWriterfails while bulk loading values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BulkCacheLoadingException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<?,Exception>getFailures()Returns the map of keys to exception.Map<?,?>getSuccesses()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 Detail
-
BulkCacheLoadingException
public BulkCacheLoadingException(Map<?,Exception> failures, Map<?,?> successes)
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
-
-