AsyncPingHandler implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final Callback | |
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements org. |
| public void | consumeResponse(final ByteBuffer
the ping message feedback. feedback)Implements org. |
| public void | failed(final Exception
the cause of the failure. cause)Implements org. |
| public ByteBuffer | getData()
Implements org. |
| callback | back to summary |
|---|---|
| private final Callback<Boolean> callback | |
| PING_MESSAGE | back to summary |
|---|---|
| private static final byte[] PING_MESSAGE | |
| BasicPingHandler | back to summary |
|---|---|
| public BasicPingHandler(final Callback<Boolean> callback) | |
| cancel | back to summary |
|---|---|
| public void cancel() Implements org. Doc from org. Triggered to cancel the message exchange.
| |
| consumeResponse | back to summary |
|---|---|
| public void consumeResponse(final ByteBuffer feedback) throws HttpException, IOException Implements org. Doc from org. Triggered to signal receipt of a ping response message.
| |
| failed | back to summary |
|---|---|
| public void failed(final Exception cause) Implements org. Doc from org. Triggered to signal a failure in data processing. | |
| getData | back to summary |
|---|---|
| public ByteBuffer getData() Implements org. Doc from org. Returns content of ping message.
| |