public abstract class Dispatcher extends Object
| Constructor and Description |
|---|
Dispatcher() |
| Modifier and Type | Method and Description |
|---|---|
abstract MockResponse |
dispatch(RecordedRequest request)
Returns a response to satisfy
request. |
MockResponse |
peek()
Returns an early guess of the next response, used for policy on how an incoming request should
be received.
|
void |
shutdown()
Release any resources held by this dispatcher.
|
public abstract MockResponse dispatch(RecordedRequest request) throws InterruptedException
request. This method may block (for instance, to wait on
a CountdownLatch).InterruptedExceptionpublic MockResponse peek()
public void shutdown()
Copyright © 2017. All Rights Reserved.