Interface Endpoint.DatagramEvent
- All Known Implementing Classes:
Endpoint.DatagramEvent.Deliver,Endpoint.DatagramEvent.NewConnection,Endpoint.DatagramEvent.Response
- Enclosing class:
Endpoint
public static sealed interface Endpoint.DatagramEvent
permits Endpoint.DatagramEvent.Deliver, Endpoint.DatagramEvent.NewConnection, Endpoint.DatagramEvent.Response
What to do with a datagram.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe datagram belongs to a connection: pass it toConnection.handleDatagram(long, java.net.InetSocketAddress, int, java.nio.ByteBuffer).static final recordA client's first Initial created a server connection: start driving it, then pass it the datagram.static final recordSend this datagram back to the datagram's sender (Version Negotiation, Retry, stateless reset or CONNECTION_CLOSE).