A server side network connector that uses a DatagramChannel to listen on a network port for QUIC traffic.
This connector uses ConnectionFactorys to configure the protocols to support.
The protocol is negotiated during the connection establishment by QuicSession, and for each QUIC stream
managed by a QuicSession a ConnectionFactory is used to create a Connection for the
correspondent QuicStreamEndPoint.
QuicConfiguration
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private Path | |
| private final QuicSessionContainer | |
| private volatile DatagramChannel | |
| private int | |
| private volatile int | |
| private int | |
| private Path | |
| private final QuicConfiguration | |
| private final QuicServerConnector. | |
| private final SslContextFactory. | |
| private Path | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | QuicServerConnector(Server server, SslContextFactory.
|
| public | QuicServerConnector(Server server, Executor executor, Scheduler scheduler, ByteBufferPool bufferPool, SslContextFactory.
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| private void | |
| protected void | doStart()
Overrides org. Starts the managed lifecycle beans in the order they were added. |
| protected void | doStop()
Overrides org. Stops the managed lifecycle beans in the reverse order they were added. |
| private Path | |
| public int | |
| public int | |
| public int | |
| public QuicConfiguration | |
| public Object | getTransport()
Implements org. Get the underlying socket, channel, buffer etc. for the connector.. |
| public boolean | isOpen()
Implements org. A Connector may be opened and not started (to reserve a port) or closed and running (to allow graceful shutdown of existing connections) |
| public boolean | |
| public boolean | |
| protected ServerQuicConnection | |
| protected EndPoint | |
| pack-priv QuicheConfig | |
| public void | open()
Overrides org. Implements org. Performs the activities needed to open the network communication (for example, to start accepting incoming network connections). |
| protected DatagramChannel | |
| public void | setIdleTimeout(long idleTimeout)
Overrides org. Sets the maximum Idle time for a connection, which roughly translates to the |
| public void | |
| public void | |
| public void | |
| public void | |
| public CompletableFuture | shutdown()
Overrides org. Implements org. Shutdown the component. |
| certificateChainPemPath | back to summary |
|---|---|
| private Path certificateChainPemPath | |
| container | back to summary |
|---|---|
| private final QuicSessionContainer container | |
| datagramChannel | back to summary |
|---|---|
| private volatile DatagramChannel datagramChannel | |
| inputBufferSize | back to summary |
|---|---|
| private int inputBufferSize | |
| localPort | back to summary |
|---|---|
| private volatile int localPort | |
| outputBufferSize | back to summary |
|---|---|
| private int outputBufferSize | |
| privateKeyPemPath | back to summary |
|---|---|
| private Path privateKeyPemPath | |
| quicConfiguration | back to summary |
|---|---|
| private final QuicConfiguration quicConfiguration | |
| selectorManager | back to summary |
|---|---|
| private final QuicServerConnector. | |
| sslContextFactory | back to summary |
|---|---|
| private final SslContextFactory. | |
| trustedCertificatesPemPath | back to summary |
|---|---|
| private Path trustedCertificatesPemPath | |
| useInputDirectByteBuffers | back to summary |
|---|---|
| private boolean useInputDirectByteBuffers | |
| useOutputDirectByteBuffers | back to summary |
|---|---|
| private boolean useOutputDirectByteBuffers | |
| QuicServerConnector | back to summary |
|---|---|
| public QuicServerConnector(Server server, SslContextFactory. | |
| QuicServerConnector | back to summary |
|---|---|
| public QuicServerConnector(Server server, Executor executor, Scheduler scheduler, ByteBufferPool bufferPool, SslContextFactory. | |
| accept | back to summary |
|---|---|
| protected void accept(int acceptorID) Implements abstract org.
| |
| deleteFile | back to summary |
|---|---|
| private void deleteFile(Path file) | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. Doc from org. Starts the managed lifecycle beans in the order they were added.
| |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception Overrides org. Doc from org. Stops the managed lifecycle beans in the reverse order they were added.
| |
| findPemWorkDirectory | back to summary |
|---|---|
| private Path findPemWorkDirectory() | |
| getInputBufferSize | back to summary |
|---|---|
| public int getInputBufferSize() | |
| getLocalPort | back to summary |
|---|---|
| public int getLocalPort() Overrides org. Implements org.
| |
| getOutputBufferSize | back to summary |
|---|---|
| public int getOutputBufferSize() | |
| getQuicConfiguration | back to summary |
|---|---|
| public QuicConfiguration getQuicConfiguration() | |
| getTransport | back to summary |
|---|---|
| public Object getTransport() Implements org. Doc from org. Get the underlying socket, channel, buffer etc. for the connector..
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements org. Doc from org. A Connector may be opened and not started (to reserve a port) or closed and running (to allow graceful shutdown of existing connections)
| |
| isUseInputDirectByteBuffers | back to summary |
|---|---|
| public boolean isUseInputDirectByteBuffers() | |
| isUseOutputDirectByteBuffers | back to summary |
|---|---|
| public boolean isUseOutputDirectByteBuffers() | |
| newConnection | back to summary |
|---|---|
| protected ServerQuicConnection newConnection(EndPoint endpoint) | |
| newEndPoint | back to summary |
|---|---|
| protected EndPoint newEndPoint(DatagramChannel channel, ManagedSelector selector, SelectionKey selectionKey) | |
| newQuicheConfig | back to summary |
|---|---|
| pack-priv QuicheConfig newQuicheConfig() | |
| open | back to summary |
|---|---|
| public void open() throws IOException Overrides org. Implements org. Doc from org. Performs the activities needed to open the network communication (for example, to start accepting incoming network connections).
| |
| openDatagramChannel | back to summary |
|---|---|
| protected DatagramChannel openDatagramChannel() throws IOException | |
| setIdleTimeout | back to summary |
|---|---|
| public void setIdleTimeout(long idleTimeout) Overrides org. Doc from org. Sets the maximum Idle time for a connection, which roughly translates to the The max idle time is applied:
This value is interpreted as the maximum time between some progress being made on the connection. So if a single byte is read or written, then the timeout is reset.
| |
| setInputBufferSize | back to summary |
|---|---|
| public void setInputBufferSize(int inputBufferSize) | |
| setOutputBufferSize | back to summary |
|---|---|
| public void setOutputBufferSize(int outputBufferSize) | |
| setUseInputDirectByteBuffers | back to summary |
|---|---|
| public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) | |
| setUseOutputDirectByteBuffers | back to summary |
|---|---|
| public void setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers) | |
| shutdown | back to summary |
|---|---|
| public CompletableFuture Overrides org. Implements org. Doc from org. Shutdown the component. When this method returns, the component should not accept any new load.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | endPointClosed(EndPoint endpoint)
Overrides org. Callback method invoked when an endpoint is closed. |
| protected void | endPointOpened(EndPoint endpoint)
Overrides org. Callback method invoked when an endpoint is opened. |
| public Connection | newConnection(SelectableChannel channel, EndPoint endpoint, Object attachment)
Implements abstract org. Factory method to create |
| protected EndPoint | newEndPoint(SelectableChannel channel, ManagedSelector selector, SelectionKey selectionKey)
Implements abstract org. Factory method to create |
| private void |
| ServerDatagramSelectorManager | back to summary |
|---|---|
| protected ServerDatagramSelectorManager(Executor executor, Scheduler scheduler, int selectors) | |
| endPointClosed | back to summary |
|---|---|
| protected void endPointClosed(EndPoint endpoint) Overrides org. Doc from org. Callback method invoked when an endpoint is closed.
| |
| endPointOpened | back to summary |
|---|---|
| protected void endPointOpened(EndPoint endpoint) Overrides org. Doc from org. Callback method invoked when an endpoint is opened.
| |
| newConnection | back to summary |
|---|---|
| public Connection newConnection(SelectableChannel channel, EndPoint endpoint, Object attachment) Implements abstract org. Doc from org. Factory method to create
| |
| newEndPoint | back to summary |
|---|---|
| protected EndPoint newEndPoint(SelectableChannel channel, ManagedSelector selector, SelectionKey selectionKey) Implements abstract org. Doc from org. Factory method to create This method is invoked as a result of the registration of a channel via
| |
| setIdleTimeout | back to summary |
|---|---|
| private void setIdleTimeout(long idleTimeout) | |