|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AdvancedCache<K,V>
An advanced interface that exposes additional methods not available on Cache.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| 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)
|
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()
|
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)
|
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)
|
V |
remove(Object key,
Flag... flags)
|
boolean |
remove(Object key,
Object oldValue,
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. |
| Methods inherited from interface org.infinispan.Cache |
|---|
compact, endBatch, evict, getAdvancedCache, getCacheManager, getConfiguration, getName, getStatus, getVersion, put, put, putAll, putAll, putForExternalRead, putIfAbsent, putIfAbsent, replace, replace, replace, replace, startBatch |
| Methods inherited from interface java.util.concurrent.ConcurrentMap |
|---|
putIfAbsent, remove, replace, replace |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from interface org.infinispan.lifecycle.Lifecycle |
|---|
start, stop |
| Methods inherited from interface org.infinispan.notifications.Listenable |
|---|
addListener, getListeners, removeListener |
| Method Detail |
|---|
void addInterceptor(CommandInterceptor i,
int position)
i - the interceptor to addposition - the position to add the interceptor
void addInterceptorAfter(CommandInterceptor i,
Class<? extends CommandInterceptor> afterInterceptor)
i - interceptor to addafterInterceptor - interceptor type after which to place custom interceptor
void addInterceptorBefore(CommandInterceptor i,
Class<? extends CommandInterceptor> beforeInterceptor)
i - interceptor to addbeforeInterceptor - interceptor type before which to place custom interceptorvoid removeInterceptor(int position)
position - the position at which to remove an interceptorvoid removeInterceptor(Class<? extends CommandInterceptor> interceptorType)
interceptorType - type of interceptor to removeList<CommandInterceptor> getInterceptorChain()
List of CommandInterceptors
configured for this cacheEvictionManager getEvictionManager()
ComponentRegistry getComponentRegistry()
RpcManager getRpcManager()
BatchContainer getBatchContainer()
InvocationContextContainer getInvocationContextContainer()
DataContainer getDataContainer()
void putForExternalRead(K key,
V value,
Flag... flags)
V put(K key,
V value,
Flag... flags)
V put(K key,
V value,
long lifespan,
TimeUnit lifespanUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit,
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)
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)
V remove(Object key,
Flag... flags)
boolean remove(Object key,
Object oldValue,
Flag... flags)
void clear(Flag... flags)
boolean containsKey(Object key,
Flag... flags)
V get(Object key,
Flag... flags)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||