@Test public void testPutAll() throws ExecutionException, InterruptedException { final Map<String, String> map = new HashMap<>(); map.put("hello", "world"); map.put("foo", "bar"); map.put("mal", "reynolds"); when(delegate.putAll(map, 10, TimeUnit.MINUTES)).thenReturn(immediate(map)); final Map<String, String> result = wrapper.putAll(map, 10, TimeUnit.MINUTES); assertThat(result).isEqualTo(map); }
@Override public Map<K, V> putAll(Map<K, V> map, long expiry, TimeUnit unit) { return blocking(config.delegate.putAll(map, expiry, unit)); }
SyncCacheWrapper implements SyncCache<K, V> { @Override public Map<K, V> putAll(Map<K, V> map, long expiry, TimeUnit unit) { return blocking(config.delegate.putAll(map, expiry, unit)); } }
SyncCacheWrapper implements SyncCache<K, V> { @Override public Map<K, V> putAll(Map<K, V> map, long expiry, TimeUnit unit) { return blocking(config.delegate.putAll(map, expiry, unit)); } private  SyncCacheWrapper(Builder<K, V> config); }
SyncCacheWrapper implements SyncCache<K, V> { @Override public Map<K, V> putAll(Map<K, V> map, long expiry, TimeUnit unit) { return blocking(config.delegate.putAll(map, expiry, unit)); } private  SyncCacheWrapper(Builder<K, V> config); @Override V get(K key); @Override V put(K key, V value, long expiry, TimeUnit unit); @Override K remove(K key); @Override Map<K, V> getAll(Collection<K> keys); @Override Map<K, V> putAll(Map<K, V> map, long expiry, TimeUnit unit); @Override Collection<K> removeAll(Collection<K> keys); static Builder<K, V> newBuilder(Class<K> keyType, Class<V> valueType); }
SyncCacheWrapper implements SyncCache<K, V> { @Override public Map<K, V> putAll(Map<K, V> map, long expiry, TimeUnit unit) { return blocking(config.delegate.putAll(map, expiry, unit)); } private  SyncCacheWrapper(Builder<K, V> config); @Override V get(K key); @Override V put(K key, V value, long expiry, TimeUnit unit); @Override K remove(K key); @Override Map<K, V> getAll(Collection<K> keys); @Override Map<K, V> putAll(Map<K, V> map, long expiry, TimeUnit unit); @Override Collection<K> removeAll(Collection<K> keys); static Builder<K, V> newBuilder(Class<K> keyType, Class<V> valueType);  }