类 CacheDispatcher
java.lang.Object
java.lang.Thread
com.android.volley.CacheDispatcher
- 所有已实现的接口:
Runnable
Provides a thread for performing cache triage on a queue of requests.
Requests added to the specified cache queue are resolved from cache.
Any deliverable response is posted back to the caller via a
ResponseDelivery. Cache misses and responses that require
refresh are enqueued on the specified network queue for processing
by a NetworkDispatcher.-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
字段概要
从类继承的字段 java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
构造器概要
构造器构造器说明CacheDispatcher(BlockingQueue<Request<?>> cacheQueue, BlockingQueue<Request<?>> networkQueue, Cache cache, ResponseDelivery delivery) Creates a new cache triage dispatcher thread. -
方法概要
从类继承的方法 java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
构造器详细资料
-
CacheDispatcher
public CacheDispatcher(BlockingQueue<Request<?>> cacheQueue, BlockingQueue<Request<?>> networkQueue, Cache cache, ResponseDelivery delivery) Creates a new cache triage dispatcher thread. You must callThread.start()in order to begin processing.- 参数:
cacheQueue- Queue of incoming requests for triagenetworkQueue- Queue to post requests that require network tocache- Cache interface to use for resolutiondelivery- Delivery interface to use for posting responses
-
-
方法详细资料