Class BulkCacheLoadingException

All Implemented Interfaces:
Serializable

public class BulkCacheLoadingException extends CacheLoadingException
Thrown by a Cache when its CacheLoaderWriter fails while bulk loading values.
See Also:
  • Constructor Details

    • BulkCacheLoadingException

      public BulkCacheLoadingException(Map<?,Exception> failures, Map<?,?> successes)
      Constructs a BulkCacheLoadingException instance with the given maps.

      The two maps are:

      • a map from keys to exception thrown while loading,
      • a map from keys to value where loading succeeded
      Parameters:
      failures - the map of keys to failure encountered while loading
      successes - the map of keys successfully loaded and their associated value
    • BulkCacheLoadingException

      public BulkCacheLoadingException(String message, Map<Object,Exception> failures, Map<Object,Object> successes)
      Constructs a new exception instance with the given message and maps.

      The given two maps are:

      • a map from keys to exception thrown while loading,
      • a map from keys to value where loading succeeded
      Parameters:
      message - the exception message
      failures - the map of keys to failure encountered while loading
      successes - the map of keys successfully loaded and their associated value
  • Method Details

    • getFailures

      public Map<?,Exception> getFailures()
      Returns the map of keys to exception.
      Returns:
      a map of keys to the exception encountered while loading
    • getSuccesses

      public Map<?,?> getSuccesses()
      Returns the map of keys to value.
      Returns:
      a map of keys to the value loaded