public class BasicPingHandler extends Object implements AsyncPingHandler
AsyncPingHandler implementation.| 构造器和说明 |
|---|
BasicPingHandler(Callback<Boolean> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 AsyncPingHandlerpublic void consumeResponse(ByteBuffer feedback) throws HttpException, IOException
AsyncPingHandlerconsumeResponse 在接口中 AsyncPingHandlerfeedback - the ping message feedback.HttpExceptionIOExceptionpublic void failed(Exception cause)
AsyncPingHandlerfailed 在接口中 AsyncPingHandlercause - the cause of the failure.public void cancel()
AsyncPingHandlercancel 在接口中 AsyncPingHandlerCopyright © 2023. All rights reserved.