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:
java.io.Serializable
public class BulkCacheLoadingException extends CacheLoadingException
Thrown by aCachewhen itsCacheLoaderWriterfails while bulk loading values.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<?,java.lang.Exception>failuresprivate static longserialVersionUIDprivate java.util.Map<?,?>successes
-
Constructor Summary
Constructors Constructor Description 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 exception instance with the given message and maps.BulkCacheLoadingException(java.util.Map<?,java.lang.Exception> failures, java.util.Map<?,?> successes)Constructs aBulkCacheLoadingExceptioninstance with the given maps.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<?,java.lang.Exception>getFailures()Returns the map of keys to exception.java.util.Map<?,?>getSuccesses()Returns the map of keys to value.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
failures
private final java.util.Map<?,java.lang.Exception> failures
-
successes
private final java.util.Map<?,?> successes
-
-
Constructor Detail
-
BulkCacheLoadingException
public BulkCacheLoadingException(java.util.Map<?,java.lang.Exception> failures, java.util.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(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 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 Detail
-
getFailures
public java.util.Map<?,java.lang.Exception> getFailures()
Returns the map of keys to exception.- Returns:
- a map of keys to the exception encountered while loading
-
getSuccesses
public java.util.Map<?,?> getSuccesses()
Returns the map of keys to value.- Returns:
- a map of keys to the value loaded
-
-