Package org.ehcache.spi.loaderwriter
Class BulkCacheWritingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.ehcache.spi.loaderwriter.CacheWritingException
-
- org.ehcache.spi.loaderwriter.BulkCacheWritingException
-
- All Implemented Interfaces:
java.io.Serializable
public class BulkCacheWritingException extends CacheWritingException
Thrown by aCachewhen itsCacheLoaderWriterfails while bulk mutating 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.Set<?>successes
-
Constructor Summary
Constructors Constructor Description BulkCacheWritingException(java.util.Map<?,java.lang.Exception> failures, java.util.Set<?> successes)Constructs aBulkCacheWritingExceptioninstance with the given map and set.
-
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.lang.StringgetMessage()java.util.Set<?>getSuccesses()Returns the set of keys that were successfully written.
-
-
-
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.Set<?> successes
-
-
Constructor Detail
-
BulkCacheWritingException
public BulkCacheWritingException(java.util.Map<?,java.lang.Exception> failures, java.util.Set<?> successes)Constructs aBulkCacheWritingExceptioninstance with the given map and set.The given arguments are:
- a map from keys to exception thrown while writing,
- a set of keys for which writing succeeded
- Parameters:
failures- 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 exception encountered while writing
-
getSuccesses
public java.util.Set<?> getSuccesses()
Returns the set of keys that were successfully written.- Returns:
- a set of keys successfully written
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-