Package reactor.netty.http
Interface HttpConnectionLiveness
- All Known Implementing Classes:
Http2ConnectionLiveness
public interface HttpConnectionLiveness
Interface for checking the liveness of an HTTP connection.
This interface provides methods to cancel started probes or any active work,
process messages received from the remote peer, and start probing the connection for the liveness.
- Since:
- 1.2.12
- Author:
- raccoonback, Violeta Georgieva
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpConnectionLivenessHttpConnectionLivenessthat immediately closes the HTTP connection on read idle, without starting any probing.static final Logger -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels started probes or any active work.voidCloses or starts probing the connection for the liveness.voidProcesses messages received from the remote peer.
-
Field Details
-
log
-
CLOSE
HttpConnectionLivenessthat immediately closes the HTTP connection on read idle, without starting any probing.
-
-
Method Details
-
cancel
void cancel()Cancels started probes or any active work. -
check
Closes or starts probing the connection for the liveness.- Parameters:
ctx- theChannelHandlerContextof the connection
-
receive
Processes messages received from the remote peer.- Parameters:
msg- the message received from the remote peer
-