Class BulkCacheWritingException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<?,​java.lang.Exception> failures  
      private static long serialVersionUID  
      private java.util.Set<?> successes  
    • Constructor Summary

      Constructors 
      Constructor Description
      BulkCacheWritingException​(java.util.Map<?,​java.lang.Exception> failures, java.util.Set<?> successes)
      Constructs a BulkCacheWritingException instance with the given map and set.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<?,​java.lang.Exception> getFailures()
      Returns the map of keys to exception.
      java.lang.String getMessage()  
      java.util.Set<?> getSuccesses()
      Returns the set of keys that were successfully written.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • failures

        private final java.util.Map<?,​java.lang.Exception> failures
      • successes

        private final java.util.Set<?> successes
    • Constructor Detail

      • BulkCacheWritingException

        public BulkCacheWritingException​(java.util.Map<?,​java.lang.Exception> failures,
                                         java.util.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 java.util.Map<?,​java.lang.Exception> getFailures()
        Returns the map of keys to exception.
        Returns:
        a map of keys to exception encountered while writing
      • getSuccesses

        public java.util.Set<?> getSuccesses()
        Returns the set of keys that were successfully written.
        Returns:
        a set of keys successfully written
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable