org.infinispan.client.hotrod.impl
public abstract class RemoteCacheSupport<K,V> extends org.infinispan.CacheSupport<K,V> implements RemoteCache<K,V>
Constructor and Description |
---|
RemoteCacheSupport() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
remove(Object key,
Object value)
This operation is not supported.
|
org.infinispan.util.concurrent.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.
|
org.infinispan.util.concurrent.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. |
org.infinispan.util.concurrent.NotifyingFuture<Boolean> |
replaceWithVersionAsync(K key,
V newValue,
long version) |
org.infinispan.util.concurrent.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, set
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBulk, getBulk, getRemoteCacheManager, getVersioned, getWithMetadata, isEmpty, keySet, putAll, putAll, putAll, putAllAsync, putAllAsync, putAllAsync, removeWithVersion, removeWithVersionAsync, replace, replace, replaceAsync, replaceAsync, replaceWithVersion, replaceWithVersionAsync, size, stats, withFlags
clearAsync, getAsync, getName, getVersion, put, put, put, putAsync, putAsync, putAsync, putIfAbsent, putIfAbsent, putIfAbsentAsync, putIfAbsentAsync, putIfAbsentAsync, remove, removeAsync, replace, replace, replaceAsync, replaceAsync, replaceAsync
putIfAbsent, replace
public org.infinispan.util.concurrent.NotifyingFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version)
replaceWithVersionAsync
in interface RemoteCache<K,V>
RemoteCache.replaceWithVersion(Object, Object, long)
public org.infinispan.util.concurrent.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)
RemoteCache
RemoteCache.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)
,
VersionedValue
public boolean replaceWithVersion(K key, V newValue, long version, int lifespanSeconds)
RemoteCache
RemoteCache.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)
RemoteCache
RemoteCache.removeWithVersion(Object, long)
instead.remove
in interface ConcurrentMap<K,V>
remove
in interface RemoteCache<K,V>
public org.infinispan.util.concurrent.NotifyingFuture<Boolean> removeAsync(Object key, Object value)
RemoteCache
RemoteCache.removeWithVersionAsync(Object, long)
instead.removeAsync
in interface org.infinispan.api.BasicCache<K,V>
removeAsync
in interface RemoteCache<K,V>
public boolean replace(K key, V oldValue, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
RemoteCache
RemoteCache.replaceWithVersion(Object, Object, long, int, int)
instead.public org.infinispan.util.concurrent.NotifyingFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
RemoteCache
RemoteCache.replaceWithVersion(Object, Object, long, int, int)
instead.replaceAsync
in interface org.infinispan.api.BasicCache<K,V>
replaceAsync
in interface RemoteCache<K,V>
Copyright © 2016 JBoss, a division of Red Hat. All Rights Reserved.