Package org.apache.hc.core5.http2.nio
Interface AsyncPingHandler
-
- All Known Implementing Classes:
BasicPingHandler
public interface AsyncPingHandlerAbstract asynchronous ping exchange handler.- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel()Triggered to cancel the message exchange.voidconsumeResponse(java.nio.ByteBuffer feedback)Triggered to signal receipt of a ping response message.voidfailed(java.lang.Exception cause)Triggered to signal a failure in data processing.java.nio.ByteBuffergetData()Returns content of ping message.
-
-
-
Method Detail
-
getData
java.nio.ByteBuffer getData()
Returns content of ping message.- Returns:
- the ping message content.
-
consumeResponse
void consumeResponse(java.nio.ByteBuffer feedback) throws HttpException, java.io.IOExceptionTriggered to signal receipt of a ping response message.- Parameters:
feedback- the ping message feedback.- Throws:
HttpExceptionjava.io.IOException
-
failed
void failed(java.lang.Exception cause)
Triggered to signal a failure in data processing.- Parameters:
cause- the cause of the failure.
-
cancel
void cancel()
Triggered to cancel the message exchange.
-
-