org.ehcache.exceptions
Class BulkCacheWritingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ehcache.exceptions.CacheWritingException
org.ehcache.exceptions.BulkCacheWritingException
- All Implemented Interfaces:
- java.io.Serializable
public class BulkCacheWritingException
- extends CacheWritingException
Exception thrown by a Cache
when the CacheLoaderWriter
it uses threw an
exception while bulk writing / removing values for a given set of keys
- See Also:
- Serialized Form
Constructor Summary |
BulkCacheWritingException(java.util.Map<?,java.lang.Exception> failures,
java.util.Set<?> successes)
Constructs a new BulkCacheWritingException providing the key set that failed, including the exception loading these
threw, as well as all keys we managed to write a value for. |
Method Summary |
java.util.Map<?,java.lang.Exception> |
getFailures()
Accessor to all keys that failed loading during a bulk load operation, with the associated
Exception encountered |
java.util.Set<?> |
getSuccesses()
Accessor to all keys that were successfully loaded during a bulk load operation |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BulkCacheWritingException
public BulkCacheWritingException(java.util.Map<?,java.lang.Exception> failures,
java.util.Set<?> successes)
- Constructs a new BulkCacheWritingException providing the key set that failed, including the exception loading these
threw, as well as all keys we managed to write a value for. This latter set of keys was
written successfully into the
Cache
.
- Parameters:
failures
- the map of keys to failure encountered while loading the valuessuccesses
- the set of keys successfully written / removed
getFailures
public java.util.Map<?,java.lang.Exception> getFailures()
- Accessor to all keys that failed loading during a bulk load operation, with the associated
Exception
encountered
- Returns:
- a map of keys to exception encountered during bulk load
getSuccesses
public java.util.Set<?> getSuccesses()
- Accessor to all keys that were successfully loaded during a bulk load operation
- Returns:
- a set of keys loaded and installed in the
Cache