Class BulkCacheWritingException

All Implemented Interfaces:
Serializable

public class BulkCacheWritingException extends CacheWritingException
Thrown by a Cache when its CacheLoaderWriter fails while bulk mutating values.
See Also:
  • Constructor Details

    • BulkCacheWritingException

      public BulkCacheWritingException(Map<?,Exception> failures, Set<?> successes)
      Constructs a BulkCacheWritingException instance 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 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 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:
      getMessage in class Throwable