public class RefreshCache<K,V> extends LoadingCache<K,V>
| 构造器和说明 |
|---|
RefreshCache(Cache cache) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Clean resources created by this cache.
|
MultiGetResult<K,V> |
GET_ALL(Set<? extends K> keys)
Gets a collection of entries from the Cache.
|
CacheGetResult<V> |
GET(K key)
Gets an entry from the cache.
|
get, getAllcomputeIfAbsent, computeIfAbsent, computeIfAbsent, config, getTargetCache, PUT_ALL, PUT_ALL, PUT_IF_ABSENT, put, PUT, put, PUT, putAll, putAll, putIfAbsent, REMOVE_ALL, remove, REMOVE, removeAll, tryLock, tryLockAndRun, unwrappublic RefreshCache(Cache cache)
public void close()
Cachepublic CacheGetResult<V> GET(K key)
Cacheif the implementation supports asynchronous operation, the cache access may not completed after this method return. The invoke of getResultCode()/isSuccess()/getMessage()/getValue() on the result will block until cache operation is completed. Call future() method on the result will get a CompletionStage instance for asynchronous programming.
public MultiGetResult<K,V> GET_ALL(Set<? extends K> keys)
Cacheif the implementation supports asynchronous operation, the cache access may not completed after this method return. The invoke of getResultCode()/isSuccess()/getMessage()/getValue() on the result will block until cache operation is completed. Call future() method on the result will get a CompletionStage instance for asynchronous programming.
Copyright © 2013–2018. All rights reserved.