类 NetworkDispatcher
java.lang.Object
java.lang.Thread
com.android.volley.NetworkDispatcher
- 所有已实现的接口:
Runnable
Provides a thread for performing network dispatch from a queue of requests.
Requests added to the specified queue are processed from the network via a
specified
Network interface. Responses are committed to cache, if
eligible, using a specified Cache interface. Valid responses and
errors are posted back to the caller via a ResponseDelivery.-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
字段概要
从类继承的字段 java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
构造器概要
构造器构造器说明NetworkDispatcher(BlockingQueue<Request<?>> queue, Network network, Cache cache, ResponseDelivery delivery) Creates a new network 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
-
构造器详细资料
-
NetworkDispatcher
public NetworkDispatcher(BlockingQueue<Request<?>> queue, Network network, Cache cache, ResponseDelivery delivery) Creates a new network dispatcher thread. You must callThread.start()in order to begin processing.- 参数:
queue- Queue of incoming requests for triagenetwork- Network interface to use for performing requestscache- Cache interface to use for writing responses to cachedelivery- Delivery interface to use for posting responses
-
-
方法详细资料