Package org.apache.hc.core5.http2.nio
Interface AsyncPingHandler
- All Known Implementing Classes:
BasicPingHandler
public interface AsyncPingHandler
Abstract asynchronous ping exchange handler.
- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Triggered to cancel the message exchange.void
consumeResponse
(ByteBuffer feedback) Triggered to signal receipt of a ping response message.void
Triggered to signal a failure in data processing.getData()
Returns content of ping message.
-
Method Details
-
getData
ByteBuffer getData()Returns content of ping message.- Returns:
- the ping message content.
-
consumeResponse
Triggered to signal receipt of a ping response message.- Parameters:
feedback
- the ping message feedback.- Throws:
HttpException
IOException
-
failed
Triggered to signal a failure in data processing.- Parameters:
cause
- the cause of the failure.
-
cancel
void cancel()Triggered to cancel the message exchange.
-