|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NearCacheManager
NearCacheManager is the contract point to manage all existing
NearCache instances.
| Method Summary | ||
|---|---|---|
void |
clearAllNearCaches()
Clears all defined NearCache instances. |
|
boolean |
clearNearCache(String name)
Clears NearCache instance associated with given name
but not removes it. |
|
void |
destroyAllNearCaches()
Destroys all defined NearCache instances. |
|
boolean |
destroyNearCache(String name)
Destroys NearCache instance associated with given name
and also removes it. |
|
|
getNearCache(String name)
Gets the NearCache instance
associated with given name. |
|
|
getOrCreateNearCache(String name,
NearCacheConfig nearCacheConfig,
NearCacheContext nearCacheContext)
Creates a new NearCache with given configurations
or returns existing one. |
|
Collection<NearCache> |
listAllNearCaches()
Lists all existing NearCache instances. |
|
| Method Detail |
|---|
<K,V> NearCache<K,V> getNearCache(String name)
NearCache instance
associated with given name.
K - the type of the key for Near CacheV - the type of the value for Near Cachename - the name of the NearCache instance will be got
NearCache instance
associated with given name
<K,V> NearCache<K,V> getOrCreateNearCache(String name,
NearCacheConfig nearCacheConfig,
NearCacheContext nearCacheContext)
NearCache with given configurations
or returns existing one.
K - the key type of the NearCacheV - the value type of the NearCachename - the name of the NearCache
to be created or existing onenearCacheConfig - the NearCacheConfig of the
NearCache to be creatednearCacheContext - the NearCacheContext of the
NearCache to be created
NearCache instance
associated with given nameCollection<NearCache> listAllNearCaches()
NearCache instances.
NearCache instancesboolean clearNearCache(String name)
NearCache instance associated with given name
but not removes it.
name - name of the NearCache to be cleared
true if NearCache
was found and cleared, otherwise falsevoid clearAllNearCaches()
NearCache instances.
boolean destroyNearCache(String name)
NearCache instance associated with given name
and also removes it.
name - name of the NearCache to be destroyed
true if NearCache
was found and destroyed, otherwise falsevoid destroyAllNearCaches()
NearCache instances.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||