Package org.cache2k.core
Class BulkResultCollector<K,V>
- java.lang.Object
-
- org.cache2k.core.BulkResultCollector<K,V>
-
public class BulkResultCollector<K,V> extends Object
Collects result values of a bulk operation.- Author:
- Jens Wilke
-
-
Constructor Summary
Constructors Constructor Description BulkResultCollector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.cache2k.io.CacheLoaderExceptioncreateBulkLoaderException(int exceptionCount, int operationCount, Throwable example)org.cache2k.io.CacheLoaderExceptiongetAnyLoaderException()Gets a loader exception if any value represents an exceptionMap<K,V>mapOrThrowIfAllFaulty()Return result map or throw exception if every map entry has an exception.voidput(K key, Object value)voidputAll(Collection<EntryAction<K,V,V>> actions)voidthrowOnAnyLoaderException()
-
-
-
Method Detail
-
mapOrThrowIfAllFaulty
public Map<K,V> mapOrThrowIfAllFaulty()
Return result map or throw exception if every map entry has an exception.
-
getAnyLoaderException
public org.cache2k.io.CacheLoaderException getAnyLoaderException()
Gets a loader exception if any value represents an exception- Returns:
- CacheLoaderException or null if no exception is present
-
throwOnAnyLoaderException
public void throwOnAnyLoaderException()
-
createBulkLoaderException
public static org.cache2k.io.CacheLoaderException createBulkLoaderException(int exceptionCount, int operationCount, Throwable example)
-
putAll
public void putAll(Collection<EntryAction<K,V,V>> actions)
-
-