Class BulkResultCollector<K,​V>


  • public class BulkResultCollector<K,​V>
    extends Object
    Collects result values of a bulk operation.
    Author:
    Jens Wilke
    • Constructor Detail

      • BulkResultCollector

        public BulkResultCollector()
    • Method Detail

      • put

        public void put​(K key,
                        Object value)
      • 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)