public class BasicPingHandler extends Object implements AsyncPingHandler
AsyncPingHandler implementation.| Constructor and Description |
|---|
BasicPingHandler(Callback<Boolean> callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Triggered to cancel the message exchange.
|
void |
consumeResponse(ByteBuffer feedback)
Triggered to signal receipt of a ping response message.
|
void |
failed(Exception cause)
Triggered to signal a failure in data processing.
|
ByteBuffer |
getData()
Returns content of ping message.
|
public ByteBuffer getData()
AsyncPingHandlergetData in interface AsyncPingHandlerpublic void consumeResponse(ByteBuffer feedback) throws HttpException, IOException
AsyncPingHandlerconsumeResponse in interface AsyncPingHandlerfeedback - the ping message feedback.HttpException - in case of HTTP protocol violation.IOException - in case of an I/O error.public void failed(Exception cause)
AsyncPingHandlerfailed in interface AsyncPingHandlercause - the cause of the failure.public void cancel()
AsyncPingHandlercancel in interface AsyncPingHandlerCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.