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:
Serializable
public class BulkCacheWritingException extends CacheWritingException
Thrown by aCachewhen itsCacheLoaderWriterfails while bulk mutating values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BulkCacheWritingException(Map<?,Exception> failures, Set<?> successes)Constructs aBulkCacheWritingExceptioninstance with the given map and set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<?,Exception>getFailures()Returns the map of keys to exception.StringgetMessage()Set<?>getSuccesses()Returns the set of keys that were successfully written.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BulkCacheWritingException
public BulkCacheWritingException(Map<?,Exception> failures, 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 Map<?,Exception> getFailures()
Returns the map of keys to exception.- Returns:
- a map of keys to exception encountered while writing
-
getSuccesses
public Set<?> getSuccesses()
Returns the set of keys that were successfully written.- Returns:
- a set of keys successfully written
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-