public interface ResponsePump
Responses using Response.readFromSocket(ConnectionSocket).| Modifier and Type | Interface and Description |
|---|---|
static interface |
ResponsePump.Factory
A factory of response pumps.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.util.concurrent.CompletableFuture<Response> |
await(long token)
Creates a response awaiter for a query token.
|
boolean |
isAlive()
Checks if the response pump is alive.
|
void |
shutdownPump()
Shutdowns the response pump.
|
@NotNull @NotNull java.util.concurrent.CompletableFuture<Response> await(long token)
token - the query tokenCompletableFuture that completes with a Response that matches the token.boolean isAlive()
void shutdownPump()