The client specific implementation of QuicConnection.
For each ClientConnector#connect(SocketAddress, Map) operation,
a new DatagramChannelEndPoint is created with an associated
ClientQuicConnection.
| Modifier and Type | Field and Description |
|---|---|
| private final ClientConnector | |
| private Scheduler. | |
| private final Map | |
| private static final Logger | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected QuicSession | createSession(SocketAddress remoteAddress, ByteBuffer cipherBuffer)
Implements abstract org.
|
| protected void | |
| public void | onFillable()
Overrides org. Callback method invoked when the endpoint is ready to be read. |
| public boolean | onIdleExpired(TimeoutException timeoutException)
Implements abstract org. Implements org. Callback method invoked upon an idle timeout event. |
| public void | onOpen()
Overrides org. Implements org. Callback method invoked when this connection is opened. |
| public void | outwardClose(QuicSession session, Throwable failure)
Overrides org.
|
| private void |
| connector | back to summary |
|---|---|
| private final ClientConnector connector | |
| connectTask | back to summary |
|---|---|
| private Scheduler. | |
| context | back to summary |
|---|---|
| private final Map<String, Object> context | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| pendingSessions | back to summary |
|---|---|
| private final Map<SocketAddress, ClientQuicSession> pendingSessions | |
| ClientQuicConnection | back to summary |
|---|---|
| public ClientQuicConnection(ClientConnector connector, EndPoint endPoint, Map<String, Object> context) | |
| connectTimeout | back to summary |
|---|---|
| private void connectTimeout(SocketAddress remoteAddress) | |
| createSession | back to summary |
|---|---|
| protected QuicSession createSession(SocketAddress remoteAddress, ByteBuffer cipherBuffer) throws IOException Implements abstract org.
| |
| onFailure | back to summary |
|---|---|
| protected void onFailure(Throwable failure) Overrides org.
| |
| onFillable | back to summary |
|---|---|
| public void onFillable() Overrides org. Doc from org. Callback method invoked when the endpoint is ready to be read.
| |
| onIdleExpired | back to summary |
|---|---|
| public boolean onIdleExpired(TimeoutException timeoutException) Implements abstract org. Implements org. Doc from org. Callback method invoked upon an idle timeout event. Implementations of this method may return true to indicate that the idle timeout handling should proceed normally, typically failing the EndPoint and causing it to be closed. When false is returned, the handling of the idle timeout event is halted immediately and the EndPoint left in the state it was before the idle timeout event.
| |
| onOpen | back to summary |
|---|---|
| public void onOpen() Overrides org. Implements org. Doc from org. Callback method invoked when this connection is opened. Creators of the connection implementation are responsible for calling this method.
| |
| outwardClose | back to summary |
|---|---|
| public void outwardClose(QuicSession session, Throwable failure) Overrides org.
| |
| outwardClose | back to summary |
|---|---|
| private void outwardClose(SocketAddress remoteAddress, Throwable failure) | |