Class Dispatcher

    • Constructor Detail

      • Dispatcher

        public Dispatcher()
    • Method Detail

      • dispatch

        public abstract MockResponse dispatch​(RecordedRequest request)
        Returns a response to satisfy request. This method may block (for instance, to wait on a CountdownLatch).
      • 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.