Class BulkCacheWritingException

    • Constructor Detail

      • 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 Detail

      • 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