Class QueueDispatcher


  • public class QueueDispatcher
    extends Dispatcher
    Compatibility layer for OkHttp.
    • Constructor Detail

      • QueueDispatcher

        public QueueDispatcher()
    • Method Detail

      • shutdown

        public void shutdown()
        Release any resources held by this dispatcher. Any requests that are currently being dispatched should return immediately. Responses returned after shutdown will not be transmitted: their socket connections have already been closed.
        Overrides:
        shutdown in class Dispatcher
      • enqueueResponse

        public final void enqueueResponse​(MockResponse response)