Interface Connection

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
AbstractConnection, AbstractConnection.NonBlocking, NegotiatingClientConnection, SslConnection

public interface Connection extends Closeable

A Connection is associated to an EndPoint so that I/O events happening on the EndPoint can be processed by the Connection.

A typical implementation of Connection overrides onOpen() to set read interest on the EndPoint, and when the EndPoint signals read readyness, this Connection can read bytes from the network and interpret them.