org.ehcache.spi.loaderwriter
Class BulkCacheWritingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.ehcache.spi.loaderwriter.CacheWritingException
                  extended by org.ehcache.spi.loaderwriter.BulkCacheWritingException
All Implemented Interfaces:
java.io.Serializable

public class BulkCacheWritingException
extends CacheWritingException

Thrown by a Cache when its CacheLoaderWriter fails while bulk mutating values.

See Also:
Serialized Form

Constructor Summary
BulkCacheWritingException(java.util.Map<?,java.lang.Exception> failures, java.util.Set<?> successes)
          Constructs a BulkCacheWritingException instance with the given map and set.
 
Method Summary
 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
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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:

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