public class BulkCacheLoadingException extends CacheLoadingException
Cache when the CacheLoaderWriter it uses threw an
RuntimeException while bulk loading values for a given set of keys| Constructor and Description |
|---|
BulkCacheLoadingException(java.util.Map<?,java.lang.Exception> failures,
java.util.Map<?,?> successes)
Constructs a new BulkCacheLoadingException providing the key set that failed, including the exception loading these
threw, as well as all keys we managed to load a value for, including the value loaded.
|
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 BulkCacheLoadingException providing a message, the key set that failed, including the exception
loading these threw, as well as all keys we managed to load a value for, including the value loaded.
|
| Modifier and Type | Method and Description |
|---|---|
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.Map<?,?> |
getSuccesses()
Accessor to all keys that were successfully loaded during a bulk load operation, with the associated
loaded value
|
public BulkCacheLoadingException(java.util.Map<?,java.lang.Exception> failures,
java.util.Map<?,?> successes)
Cache.failures - the map of keys to failure encountered while loading the valuessuccesses - the map of keys successfully loaded and their associated valuespublic 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)
Cache.message - the messagefailures - the map of keys to failure encountered while loading the valuessuccesses - the map of keys successfully loaded and their associated valuesBulkCacheLoadingException(java.util.Map, java.util.Map)public java.util.Map<?,java.lang.Exception> getFailures()
Exception encounteredpublic java.util.Map<?,?> getSuccesses()
Cache