FileDocCategorySizeDatePackage
SendingProgressTokenManager.javaAPI DocAndroid 1.5 API1852Wed May 06 22:42:46 BST 2009com.android.mms.util

SendingProgressTokenManager

public class SendingProgressTokenManager extends Object

Fields Summary
private static final String
TAG
private static final boolean
DEBUG
private static final boolean
LOCAL_LOGV
private static final HashMap
TOKEN_POOL
public static final long
NO_TOKEN
Constructors Summary
Methods Summary
public static synchronized longget(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 voidput(java.lang.Object key, long token)

        if (LOCAL_LOGV) {
            Log.v(TAG, "TokenManager.put(" + key + ", " + token + ")");
        }
        TOKEN_POOL.put(key, token);
    
public static synchronized voidremove(java.lang.Object key)

        if (LOCAL_LOGV) {
            Log.v(TAG, "TokenManager.remove(" + key + ")");
        }
        TOKEN_POOL.remove(key);