|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.scaleoutsoftware.soss.client.CacheFactory
public final class CacheFactory
This class contains static methods for creating NamedCaches.
| Method Summary | |
|---|---|
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(String name)
Creates a NamedCache using a specified name. |
static NamedCache |
getCache(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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NamedCache getCache()
throws NamedCacheException
NamedCache using the default application id.
NamedCache
NamedCacheException - Thrown if NamedCache has experienced an internal error.
public static NamedCache getCache(String name)
throws NamedCacheException
NamedCache using a specified name.
name - cache name
NamedCache
NamedCacheException - 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.
NamedCache
NamedCacheException - Thrown if NamedCache has experienced an internal error.
public static NamedCache getCache(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 events
NamedCache
NamedCacheException - 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 events
NamedCache
NamedCacheException - Thrown if NamedCache has experienced an internal error.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||