@Test public void testPut() throws ExecutionException, InterruptedException { when(delegate.put("foo", "bar", 10, TimeUnit.SECONDS)).thenReturn(immediate("bar")); final String result = wrapper.put("foo", "bar", 10, TimeUnit.SECONDS); assertThat(result).isEqualTo("bar"); }
@Override public V put(K key, V value, long expiry, TimeUnit unit) { return blocking(config.delegate.put(key, value, expiry, unit)); }
SyncCacheWrapper implements SyncCache<K, V> { @Override public V put(K key, V value, long expiry, TimeUnit unit) { return blocking(config.delegate.put(key, value, expiry, unit)); } }
SyncCacheWrapper implements SyncCache<K, V> { @Override public V put(K key, V value, long expiry, TimeUnit unit) { return blocking(config.delegate.put(key, value, expiry, unit)); } private  SyncCacheWrapper(Builder<K, V> config); }
SyncCacheWrapper implements SyncCache<K, V> { @Override public V put(K key, V value, long expiry, TimeUnit unit) { return blocking(config.delegate.put(key, value, 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 V put(K key, V value, long expiry, TimeUnit unit) { return blocking(config.delegate.put(key, value, 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);  }