Methods Summary |
---|
public static synchronized long | get(java.lang.Object key)
TOKEN_POOL = new HashMap<Object, Long>();
Long token = TOKEN_POOL.get(key);
if (LOCAL_LOGV) {
Log.v(TAG, "TokenManager.get(" + key + ") -> " + token);
}
return token != null ? token : NO_TOKEN;
|
public static synchronized void | put(java.lang.Object key, long token)
if (LOCAL_LOGV) {
Log.v(TAG, "TokenManager.put(" + key + ", " + token + ")");
}
TOKEN_POOL.put(key, token);
|
public static synchronized void | remove(java.lang.Object key)
if (LOCAL_LOGV) {
Log.v(TAG, "TokenManager.remove(" + key + ")");
}
TOKEN_POOL.remove(key);
|