public final class CacheFactory
extends java.lang.Object
NamedCaches.| Modifier and Type | Method and Description |
|---|---|
static NamedCache |
getCache()
Creates a
NamedCache using the default application id. |
static NamedCache |
getCache(com.scaleoutsoftware.soss.client.da.StateServerKey key)
Creates a
NamedCache using the application id extracted from the StateServerKey. |
static NamedCache |
getCache(com.scaleoutsoftware.soss.client.da.StateServerKey key,
boolean registerForEvents)
Deprecated.
the event handling will be automatically enabled when the listener is
registered
NamedCache.addListener(NamedCacheObjectExpirationListener);
there is no need to explicitly enable them. |
static NamedCache |
getCache(java.lang.String name)
Creates a
NamedCache using a specified name. |
static NamedCache |
getCache(java.lang.String name,
boolean registerForEvents)
Deprecated.
the event handling will be automatically enabled when the listener is
registered
NamedCache.addListener(NamedCacheObjectExpirationListener);
there is no need to explicitly enable them. |
public static NamedCache getCache() throws NamedCacheException
NamedCache using the default application id.NamedCacheNamedCacheException - Thrown if NamedCache has experienced an internal error.public static NamedCache getCache(java.lang.String name) throws NamedCacheException
NamedCache using a specified name.name - cache nameNamedCacheNamedCacheException - Thrown if NamedCache has experienced an internal error.public static NamedCache getCache(com.scaleoutsoftware.soss.client.da.StateServerKey key) throws NamedCacheException
NamedCache using the application id extracted from the StateServerKey.key - StateServerKey instance. Only the application id is used.NamedCacheNamedCacheException - Thrown if NamedCache has experienced an internal error.public static NamedCache getCache(java.lang.String name, boolean registerForEvents) throws NamedCacheException
NamedCache.addListener(NamedCacheObjectExpirationListener);
there is no need to explicitly enable them.NamedCache using a specified name.name - cache nameregisterForEvents - indicates if this cache should be registered for expiration eventsNamedCacheNamedCacheException - Thrown if NamedCache has experienced an internal error.public static NamedCache getCache(com.scaleoutsoftware.soss.client.da.StateServerKey key, boolean registerForEvents) throws NamedCacheException
NamedCache.addListener(NamedCacheObjectExpirationListener);
there is no need to explicitly enable them.NamedCache using the application id extracted from the StateServerKey.key - StateServerKey instance. Only the application id is used.registerForEvents - indicates if this cache should be registered for expiration eventsNamedCacheNamedCacheException - Thrown if NamedCache has experienced an internal error.