QueueDispatcherpublic abstract class Dispatcher
extends java.lang.Object
| Constructor | Description |
|---|---|
Dispatcher() |
| Modifier and Type | Method | 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 java.lang.InterruptedException
request. This method may block (for instance, to wait on
a CountdownLatch).java.lang.InterruptedExceptionpublic MockResponse peek()
public void shutdown()
Copyright © 2020. All rights reserved.