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()
AsyncPingHandler
getData
in interface AsyncPingHandler
public void consumeResponse(ByteBuffer feedback) throws HttpException, IOException
AsyncPingHandler
consumeResponse
in interface AsyncPingHandler
feedback
- the ping message feedback.HttpException
IOException
public void failed(Exception cause)
AsyncPingHandler
failed
in interface AsyncPingHandler
cause
- the cause of the failure.public void cancel()
AsyncPingHandler
cancel
in interface AsyncPingHandler
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.