Top Description Methods
org.apache.hc.core5.http2.nio

public Interface AsyncPingHandler

Known Direct Implementers
org.apache.hc.core5.http2.nio.support.BasicPingHandler
Imports
java.io.IOException, java.nio.ByteBuffer, org.apache.hc.core5.http.HttpException

Abstract asynchronous ping exchange handler.
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public void
cancel()

Triggered to cancel the message exchange.

public void
consumeResponse(ByteBuffer
the ping message feedback.
feedback
)

Triggered to signal receipt of a ping response message.

public void
failed(Exception
the cause of the failure.
cause
)

Triggered to signal a failure in data processing.

public ByteBuffer

Returns:

the ping message content.
getData
()

Returns content of ping message.

Method Detail

cancelback to summary
public void cancel()

Triggered to cancel the message exchange.

consumeResponseback to summary
public void consumeResponse(ByteBuffer feedback) throws HttpException, IOException

Triggered to signal receipt of a ping response message.

Parameters
feedback:ByteBuffer

the ping message feedback.

failedback to summary
public void failed(Exception cause)

Triggered to signal a failure in data processing.

Parameters
cause:Exception

the cause of the failure.

getDataback to summary
public ByteBuffer getData()

Returns content of ping message.

Returns:ByteBuffer

the ping message content.