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
Thrown by a
Cache when its CacheLoaderWriter
fails while bulk mutating values.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBulkCacheWritingException(Map<?, Exception> failures, Set<?> successes) Constructs aBulkCacheWritingExceptioninstance with the given map and set. -
Method Summary
Modifier and TypeMethodDescriptionReturns the map of keys to exception.Set<?>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 Details
-
BulkCacheWritingException
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 Details
-
getFailures
Returns the map of keys to exception.- Returns:
- a map of keys to exception encountered while writing
-
getSuccesses
Returns the set of keys that were successfully written.- Returns:
- a set of keys successfully written
-
getMessage
- Overrides:
getMessagein classThrowable
-