Code example for WeakHashMap

0
            } 
        }); 
 
        httpClient.setHttpRequestRetryHandler(new RetryHandler(DEFAULT_MAX_RETRIES));
 
        threadPool = (ThreadPoolExecutor)Executors.newCachedThreadPool();
 
        requestMap = new WeakHashMap<Context, List<WeakReference<Future<?>>>>();
        clientHeaderMap = new HashMap<String, String>();
    } 
 
    /** 
     * Get the underlying HttpClient instance. This is useful for setting 
     * additional fine-grained settings for requests by accessing the 
     * client's ConnectionManager, HttpParams and SchemeRegistry. 
     */ 
    public HttpClient getHttpClient() {
        return this.httpClient;
    } 
 
    /**