The server specific implementation of QuicSession.
When asked to create a QUIC stream, it creates a QuicStreamEndPoint
with an associated Connection created from the ConnectionFactory,
retrieved from the server Connector, correspondent to the protocol
negotiated with the client (or the default protocol).
| Modifier and Type | Field and Description |
|---|---|
| private final Connector | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | ServerQuicSession(Executor executor, Scheduler scheduler, ByteBufferPool bufferPool, QuicheConnection quicheConnection, QuicConnection connection, SocketAddress remoteAddress, Connector connector)
|
| Modifier and Type | Method and Description |
|---|---|
| protected ProtocolSession | createProtocolSession()
Implements abstract org.
|
| private ConnectionFactory | |
| public void | |
| public long | getExpireNanoTime()
Implements org. Returns the expiration time in nanoseconds. |
| public ServerQuicConnection | |
| public Connection | newConnection(QuicStreamEndPoint endPoint)
Implements abstract org.
|
| private Connection | |
| private void | |
| public boolean | |
| public Runnable | process(SocketAddress remoteAddress, ByteBuffer cipherBufferIn)
Overrides org.
|
| public void |
| connector | back to summary |
|---|---|
| private final Connector connector | |
| expireNanoTime | back to summary |
|---|---|
| private long expireNanoTime | |
| ServerQuicSession | back to summary |
|---|---|
| public ServerQuicSession(Executor executor, Scheduler scheduler, ByteBufferPool bufferPool, QuicheConnection quicheConnection, QuicConnection connection, SocketAddress remoteAddress, Connector connector) | |
| createProtocolSession | back to summary |
|---|---|
| protected ProtocolSession createProtocolSession() Implements abstract org.
| |
| findConnectionFactory | back to summary |
|---|---|
| private ConnectionFactory findConnectionFactory(String negotiatedProtocol) | |
| flush | back to summary |
|---|---|
| public void flush() Overrides org.
| |
| getExpireNanoTime | back to summary |
|---|---|
| public long getExpireNanoTime() Implements org. Doc from org. Returns the expiration time in nanoseconds. The value to return must be calculated taking into account the current nanoTime, for example: expireNanoTime = NanoTime.now() + timeoutNanos
Returning
| |
| getQuicConnection | back to summary |
|---|---|
| public ServerQuicConnection getQuicConnection() Overrides org.
| |
| newConnection | back to summary |
|---|---|
| public Connection newConnection(QuicStreamEndPoint endPoint) Implements abstract org.
| |
| newConnection | back to summary |
|---|---|
| private Connection newConnection(ConnectionFactory factory, QuicStreamEndPoint endPoint) | |
| notIdle | back to summary |
|---|---|
| private void notIdle() | |
| onIdleTimeout | back to summary |
|---|---|
| public boolean onIdleTimeout() Overrides org.
| |
| process | back to summary |
|---|---|
| public Runnable process(SocketAddress remoteAddress, ByteBuffer cipherBufferIn) throws IOException Overrides org.
| |
| setIdleTimeout | back to summary |
|---|---|
| public void setIdleTimeout(long idleTimeout) Overrides org.
| |