com.android.volley
クラス NetworkDispatcher

java.lang.Object
  上位を拡張 java.lang.Thread
      上位を拡張 com.android.volley.NetworkDispatcher
すべての実装されたインタフェース:
java.lang.Runnable

public class NetworkDispatcher
extends java.lang.Thread

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 から継承された入れ子のクラス/インタフェース
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
フィールドの概要
 
クラス java.lang.Thread から継承されたフィールド
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
コンストラクタの概要
NetworkDispatcher(java.util.concurrent.BlockingQueue<Request> queue, Network network, Cache cache, ResponseDelivery delivery)
          Creates a new network dispatcher thread.
 
メソッドの概要
 void quit()
          Forces this dispatcher to quit immediately.
 void run()
           
 
クラス java.lang.Thread から継承されたメソッド
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

NetworkDispatcher

public NetworkDispatcher(java.util.concurrent.BlockingQueue<Request> queue,
                         Network network,
                         Cache cache,
                         ResponseDelivery delivery)
Creates a new network dispatcher thread. You must call Thread.start() in order to begin processing.

パラメータ:
queue - Queue of incoming requests for triage
network - Network interface to use for performing requests
cache - Cache interface to use for writing responses to cache
delivery - Delivery interface to use for posting responses
メソッドの詳細

quit

public void quit()
Forces this dispatcher to quit immediately. If any requests are still in the queue, they are not guaranteed to be processed.


run

public void run()
定義:
インタフェース java.lang.Runnable 内の run
オーバーライド:
クラス java.lang.Thread 内の run