Code example for ThreadPoolExecutor

Methods: execute

0
 
        if (imageCache != null && imageCache.containsKeyInMemory(imageUrl)) {
            // do not go through message passing, handle directly instead 
            handler.handleImageLoaded(imageCache.getBitmap(imageUrl), null);
        } else { 
            executor.execute(new RemoteImageLoaderJob(imageUrl, handler, imageCache, numRetries,
                    defaultBufferSize));
        } 
    } 
}