|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.AbstractDelegatingCache<K,V>
org.infinispan.AbstractDelegatingAdvancedCache<K,V>
public abstract class AbstractDelegatingAdvancedCache<K,V>
Similar to AbstractDelegatingCache
, but for AdvancedCache
.
AbstractDelegatingCache
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
AbstractDelegatingAdvancedCache(AdvancedCache<K,V> cache)
|
Method Summary | |
---|---|
void |
addInterceptor(CommandInterceptor i,
int position)
Adds a custom interceptor to the interceptor chain, at specified position, where the first interceptor in the chain is at position 0 and the last one at NUM_INTERCEPTORS - 1. |
void |
addInterceptorAfter(CommandInterceptor i,
Class<? extends CommandInterceptor> afterInterceptor)
Adds a custom interceptor to the interceptor chain, after an instance of the specified interceptor type. |
void |
addInterceptorBefore(CommandInterceptor i,
Class<? extends CommandInterceptor> beforeInterceptor)
Adds a custom interceptor to the interceptor chain, before an instance of the specified interceptor type. |
void |
clear(Flag... flags)
|
NotifyingFuture<Void> |
clearAsync(Flag... flags)
|
boolean |
containsKey(Object key,
Flag... flags)
|
V |
get(Object key,
Flag... flags)
|
BatchContainer |
getBatchContainer()
|
ComponentRegistry |
getComponentRegistry()
|
DataContainer |
getDataContainer()
|
EvictionManager |
getEvictionManager()
|
List<CommandInterceptor> |
getInterceptorChain()
Retrieves the current Interceptor chain. |
InvocationContextContainer |
getInvocationContextContainer()
|
RpcManager |
getRpcManager()
|
void |
lock(Collection<? extends K> keys)
Locks collections of keys eagerly across cache nodes in a cluster. |
void |
lock(K key)
Locks a given key eagerly across cache nodes in a cluster. |
V |
put(K key,
V value,
Flag... flags)
|
V |
put(K key,
V value,
long lifespan,
TimeUnit lifespanUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit,
Flag... flags)
|
void |
putAll(Map<? extends K,? extends V> map,
Flag... flags)
|
void |
putAll(Map<? extends K,? extends V> map,
long lifespan,
TimeUnit lifespanUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit,
Flag... flags)
|
NotifyingFuture<Void> |
putAllAsync(Map<? extends K,? extends V> map,
Flag... flags)
|
NotifyingFuture<Void> |
putAllAsync(Map<? extends K,? extends V> map,
long lifespan,
TimeUnit lifespanUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit,
Flag... flags)
|
NotifyingFuture<V> |
putAsync(K key,
V value,
Flag... flags)
|
NotifyingFuture<V> |
putAsync(K key,
V value,
long lifespan,
TimeUnit lifespanUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit,
Flag... flags)
|
void |
putForExternalRead(K key,
V value,
Flag... flags)
|
V |
putIfAbsent(K key,
V value,
Flag... flags)
|
V |
putIfAbsent(K key,
V value,
long lifespan,
TimeUnit lifespanUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit,
Flag... flags)
|
NotifyingFuture<V> |
putIfAbsentAsync(K key,
V value,
Flag... flags)
|
NotifyingFuture<V> |
putIfAbsentAsync(K key,
V value,
long lifespan,
TimeUnit lifespanUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit,
Flag... flags)
|
V |
remove(Object key,
Flag... flags)
|
NotifyingFuture<V> |
removeAsync(Object key,
Flag... flags)
|
void |
removeInterceptor(Class<? extends CommandInterceptor> interceptorType)
Removes the interceptor of specified type. |
void |
removeInterceptor(int position)
Removes the interceptor at a specified position, where the first interceptor in the chain is at position 0 and the last one at getInterceptorChain().size() - 1. |
V |
replace(K k,
V v,
Flag... flags)
|
V |
replace(K k,
V v,
long lifespan,
TimeUnit lifespanUnit,
long maxIdle,
TimeUnit maxIdleUnit,
Flag... flags)
|
boolean |
replace(K k,
V oV,
V nV,
Flag... flags)
|
boolean |
replace(K k,
V oV,
V nV,
long lifespan,
TimeUnit lifespanUnit,
long maxIdle,
TimeUnit maxIdleUnit,
Flag... flags)
|
NotifyingFuture<V> |
replaceAsync(K k,
V v,
Flag... flags)
|
NotifyingFuture<V> |
replaceAsync(K k,
V v,
long lifespan,
TimeUnit lifespanUnit,
long maxIdle,
TimeUnit maxIdleUnit,
Flag... flags)
|
NotifyingFuture<Boolean> |
replaceAsync(K k,
V oV,
V nV,
Flag... flags)
|
NotifyingFuture<Boolean> |
replaceAsync(K k,
V oV,
V nV,
long lifespan,
TimeUnit lifespanUnit,
long maxIdle,
TimeUnit maxIdleUnit,
Flag... flags)
|
Methods inherited from class org.infinispan.AbstractDelegatingCache |
---|
addListener, clear, clearAsync, compact, containsKey, containsValue, endBatch, entrySet, evict, get, getAdvancedCache, getCacheManager, getConfiguration, getListeners, getName, getStatus, getVersion, isEmpty, keySet, put, put, put, putAll, putAll, putAll, putAllAsync, putAllAsync, putAllAsync, putAsync, putAsync, putAsync, putForExternalRead, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsentAsync, putIfAbsentAsync, putIfAbsentAsync, remove, remove, removeAsync, removeAsync, removeListener, replace, replace, replace, replace, replace, replace, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, size, start, startBatch, stop, values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.infinispan.Cache |
---|
clearAsync, compact, endBatch, entrySet, evict, getAdvancedCache, getCacheManager, getConfiguration, getName, getStatus, getVersion, keySet, put, put, putAll, putAll, putAllAsync, putAllAsync, putAllAsync, putAsync, putAsync, putAsync, putForExternalRead, putIfAbsent, putIfAbsent, putIfAbsentAsync, putIfAbsentAsync, putIfAbsentAsync, removeAsync, removeAsync, replace, replace, replace, replace, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, startBatch, values |
Methods inherited from interface java.util.concurrent.ConcurrentMap |
---|
putIfAbsent, remove, replace, replace |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size |
Methods inherited from interface org.infinispan.lifecycle.Lifecycle |
---|
start, stop |
Methods inherited from interface org.infinispan.notifications.Listenable |
---|
addListener, getListeners, removeListener |
Constructor Detail |
---|
public AbstractDelegatingAdvancedCache(AdvancedCache<K,V> cache)
Method Detail |
---|
public void addInterceptor(CommandInterceptor i, int position)
AdvancedCache
addInterceptor
in interface AdvancedCache<K,V>
i
- the interceptor to addposition
- the position to add the interceptorpublic void addInterceptorAfter(CommandInterceptor i, Class<? extends CommandInterceptor> afterInterceptor)
AdvancedCache
addInterceptorAfter
in interface AdvancedCache<K,V>
i
- interceptor to addafterInterceptor
- interceptor type after which to place custom interceptorpublic void addInterceptorBefore(CommandInterceptor i, Class<? extends CommandInterceptor> beforeInterceptor)
AdvancedCache
addInterceptorBefore
in interface AdvancedCache<K,V>
i
- interceptor to addbeforeInterceptor
- interceptor type before which to place custom interceptorpublic void removeInterceptor(int position)
AdvancedCache
removeInterceptor
in interface AdvancedCache<K,V>
position
- the position at which to remove an interceptorpublic void removeInterceptor(Class<? extends CommandInterceptor> interceptorType)
AdvancedCache
removeInterceptor
in interface AdvancedCache<K,V>
interceptorType
- type of interceptor to removepublic List<CommandInterceptor> getInterceptorChain()
AdvancedCache
getInterceptorChain
in interface AdvancedCache<K,V>
List
of CommandInterceptor
s
configured for this cachepublic EvictionManager getEvictionManager()
getEvictionManager
in interface AdvancedCache<K,V>
public ComponentRegistry getComponentRegistry()
getComponentRegistry
in interface AdvancedCache<K,V>
public RpcManager getRpcManager()
getRpcManager
in interface AdvancedCache<K,V>
public BatchContainer getBatchContainer()
getBatchContainer
in interface AdvancedCache<K,V>
public InvocationContextContainer getInvocationContextContainer()
getInvocationContextContainer
in interface AdvancedCache<K,V>
public DataContainer getDataContainer()
getDataContainer
in interface AdvancedCache<K,V>
public void putForExternalRead(K key, V value, Flag... flags)
putForExternalRead
in interface AdvancedCache<K,V>
public V put(K key, V value, Flag... flags)
put
in interface AdvancedCache<K,V>
public V put(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit, Flag... flags)
put
in interface AdvancedCache<K,V>
public V putIfAbsent(K key, V value, Flag... flags)
putIfAbsent
in interface AdvancedCache<K,V>
public V putIfAbsent(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit, Flag... flags)
putIfAbsent
in interface AdvancedCache<K,V>
public void putAll(Map<? extends K,? extends V> map, Flag... flags)
putAll
in interface AdvancedCache<K,V>
public void putAll(Map<? extends K,? extends V> map, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit, Flag... flags)
putAll
in interface AdvancedCache<K,V>
public V remove(Object key, Flag... flags)
remove
in interface AdvancedCache<K,V>
public void clear(Flag... flags)
clear
in interface AdvancedCache<K,V>
public V replace(K k, V v, Flag... flags)
replace
in interface AdvancedCache<K,V>
public boolean replace(K k, V oV, V nV, Flag... flags)
replace
in interface AdvancedCache<K,V>
public V replace(K k, V v, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit, Flag... flags)
replace
in interface AdvancedCache<K,V>
public boolean replace(K k, V oV, V nV, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit, Flag... flags)
replace
in interface AdvancedCache<K,V>
public NotifyingFuture<V> putAsync(K key, V value, Flag... flags)
putAsync
in interface AdvancedCache<K,V>
public NotifyingFuture<V> putAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit, Flag... flags)
putAsync
in interface AdvancedCache<K,V>
public NotifyingFuture<V> putIfAbsentAsync(K key, V value, Flag... flags)
putIfAbsentAsync
in interface AdvancedCache<K,V>
public NotifyingFuture<V> putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit, Flag... flags)
putIfAbsentAsync
in interface AdvancedCache<K,V>
public NotifyingFuture<Void> putAllAsync(Map<? extends K,? extends V> map, Flag... flags)
putAllAsync
in interface AdvancedCache<K,V>
public NotifyingFuture<Void> putAllAsync(Map<? extends K,? extends V> map, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit, Flag... flags)
putAllAsync
in interface AdvancedCache<K,V>
public NotifyingFuture<V> removeAsync(Object key, Flag... flags)
removeAsync
in interface AdvancedCache<K,V>
public NotifyingFuture<Void> clearAsync(Flag... flags)
clearAsync
in interface AdvancedCache<K,V>
public NotifyingFuture<V> replaceAsync(K k, V v, Flag... flags)
replaceAsync
in interface AdvancedCache<K,V>
public NotifyingFuture<Boolean> replaceAsync(K k, V oV, V nV, Flag... flags)
replaceAsync
in interface AdvancedCache<K,V>
public NotifyingFuture<V> replaceAsync(K k, V v, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit, Flag... flags)
replaceAsync
in interface AdvancedCache<K,V>
public NotifyingFuture<Boolean> replaceAsync(K k, V oV, V nV, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit, Flag... flags)
replaceAsync
in interface AdvancedCache<K,V>
public boolean containsKey(Object key, Flag... flags)
containsKey
in interface AdvancedCache<K,V>
public V get(Object key, Flag... flags)
get
in interface AdvancedCache<K,V>
public void lock(K key)
AdvancedCache
A key can be locked eagerly in the context of a transaction only
lock
in interface AdvancedCache<K,V>
key
- the key to lockpublic void lock(Collection<? extends K> keys)
AdvancedCache
Collections of keys can be locked eagerly in the context of a transaction only
lock
in interface AdvancedCache<K,V>
keys
- collection of keys to lock
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |