public final class KeystringCache
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(StateServerKey key,
java.lang.String keyString)
Adds a key string to cache
|
void |
allowLocalKeystringCaching(boolean local)
Disables/enables local keystring caching.
|
java.lang.String |
get(StateServerKey key)
Gets a key string from cache.
|
static KeystringCache |
getInstance() |
public static KeystringCache getInstance()
public void add(StateServerKey key, java.lang.String keyString)
key - StateServerKeykeyString - a key string associated with SSKpublic java.lang.String get(StateServerKey key) throws StateServerException
key - a SSK for lookupStateServerException - if server returned an errorpublic void allowLocalKeystringCaching(boolean local)
local - local keystring cashing allowed