Interface ConnectionEvent
- All Known Implementing Classes:
ConnectionEvent.Connected,ConnectionEvent.ConnectionLost,ConnectionEvent.DatagramReceived,ConnectionEvent.HandshakeConfirmed,ConnectionEvent.HandshakeDataReady,ConnectionEvent.PathProbeFailed,ConnectionEvent.PathUpdated,ConnectionEvent.Stream
public sealed interface ConnectionEvent
permits ConnectionEvent.HandshakeDataReady, ConnectionEvent.Connected, ConnectionEvent.HandshakeConfirmed, ConnectionEvent.ConnectionLost, ConnectionEvent.Stream, ConnectionEvent.DatagramReceived, ConnectionEvent.PathUpdated, ConnectionEvent.PathProbeFailed
What a
Connection tells its application, through Connection.pollEvent().-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe handshake completed: streams and datagrams can flow.static final recordThe connection ended; this is the last event.static final recordOne or more DATAGRAM frames arrived; read them withConnection.receiveDatagram().static final recordThe handshake is confirmed (RFC 9001 section 4.1.2).static final recordThe handshake has progressed far enough that the ALPN protocol and, on a server, the client's server name are known.static final recordA client's probe of a new path got no PATH_RESPONSE in time: the connection stays on its path.static final recordThe path packets are sent on changed: the server followed the client to a new address (and validates it), went back to the previous path after a failed validation, or the client switched to a path it probed (Connection.probePath(long, java.net.InetSocketAddress), or the server's preferred address).static final recordSomething happened on a stream.