public abstract class RemoteCacheSupport<K,V> extends CacheSupport<K,V> implements RemoteCache<K,V>
defaultLifespan, defaultMaxIdleTime| Constructor and Description |
|---|
RemoteCacheSupport() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
Set<K> |
keySet() |
boolean |
remove(Object key,
Object value)
This operation is not supported.
|
NotifyingFuture<Boolean> |
removeAsync(Object key,
Object value)
This operation is not supported.
|
boolean |
replace(K key,
V oldValue,
V value,
long lifespan,
TimeUnit lifespanUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit)
This operation is not supported.
|
NotifyingFuture<Boolean> |
replaceAsync(K key,
V oldValue,
V newValue,
long lifespan,
TimeUnit lifespanUnit,
long maxIdle,
TimeUnit maxIdleUnit)
This operation is not supported.
|
boolean |
replaceWithVersion(K key,
V newValue,
long version)
Replaces the given value only if its version matches the supplied version.
|
boolean |
replaceWithVersion(K key,
V newValue,
long version,
int lifespanSeconds)
A overloaded form of
RemoteCache.replaceWithVersion(Object, Object, long)
which takes in lifespan parameters. |
NotifyingFuture<Boolean> |
replaceWithVersionAsync(K key,
V newValue,
long version) |
NotifyingFuture<Boolean> |
replaceWithVersionAsync(K key,
V newValue,
long version,
int lifespanSeconds) |
Collection<V> |
values() |
put, put, putAll, putAll, putAllAsync, putAllAsync, putAsync, putAsync, putIfAbsent, putIfAbsent, putIfAbsentAsync, putIfAbsentAsync, replace, replace, replace, replace, replaceAsync, replaceAsync, replaceAsync, replaceAsync, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBulk, getBulk, getRemoteCacheManager, getVersioned, isEmpty, putAll, putAll, putAll, putAllAsync, putAllAsync, putAllAsync, removeWithVersion, removeWithVersionAsync, replace, replace, replaceAsync, replaceAsync, replaceWithVersion, replaceWithVersionAsync, size, stats, withFlagsclearAsync, getAsync, getName, getVersion, put, put, putAsync, putAsync, putAsync, putIfAbsent, putIfAbsent, putIfAbsentAsync, putIfAbsentAsync, putIfAbsentAsync, removeAsync, replace, replace, replaceAsync, replaceAsync, replaceAsyncputIfAbsent, replacepublic NotifyingFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version)
replaceWithVersionAsync in interface RemoteCache<K,V>RemoteCache.replaceWithVersion(Object, Object, long)public NotifyingFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version, int lifespanSeconds)
replaceWithVersionAsync in interface RemoteCache<K,V>RemoteCache.replaceWithVersion(Object, Object, long)public boolean replaceWithVersion(K key, V newValue, long version)
RemoteCacheRemoteCache.removeWithVersion(Object, long) for a sample usage of the
version-based methods.replaceWithVersion in interface RemoteCache<K,V>version - numeric version that should match the one in the server
for the operation to succeedRemoteCache.getVersioned(Object),
VersionedValuepublic boolean replaceWithVersion(K key, V newValue, long version, int lifespanSeconds)
RemoteCacheRemoteCache.replaceWithVersion(Object, Object, long)
which takes in lifespan parameters.replaceWithVersion in interface RemoteCache<K,V>key - key to usenewValue - new value to be associated with the keyversion - numeric version that should match the one in the server
for the operation to succeedlifespanSeconds - lifespan of the entrypublic boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in interface RemoteCache<K,V>public Collection<V> values()
public boolean remove(Object key, Object value)
RemoteCacheRemoteCache.removeWithVersion(Object, long) instead.remove in interface ConcurrentMap<K,V>remove in interface RemoteCache<K,V>public NotifyingFuture<Boolean> removeAsync(Object key, Object value)
RemoteCacheRemoteCache.removeWithVersionAsync(Object, long) instead.removeAsync in interface BasicCache<K,V>removeAsync in interface RemoteCache<K,V>key - key to removevalue - value to match onpublic boolean replace(K key, V oldValue, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
RemoteCacheRemoteCache.replaceWithVersion(Object, Object, long, int, int) instead.replace in interface BasicCache<K,V>replace in interface RemoteCache<K,V>key - key to useoldValue - value to replacevalue - value to storelifespan - lifespan of the entry. Negative values are interpreted as unlimited lifespan.lifespanUnit - time unit for lifespanmaxIdleTime - the maximum amount of time this key is allowed to be idle for before it is considered as
expiredmaxIdleTimeUnit - time unit for max idle timepublic NotifyingFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
RemoteCacheRemoteCache.replaceWithVersion(Object, Object, long, int, int) instead.replaceAsync in interface BasicCache<K,V>replaceAsync in interface RemoteCache<K,V>key - key to removeoldValue - value to overwritenewValue - value to storelifespan - lifespan of entrylifespanUnit - time unit for lifespanmaxIdle - the maximum amount of time this key is allowed to be idle for before it is considered as
expiredmaxIdleUnit - time unit for max idle timeCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.