Class QuicheServerConnector
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.AbstractConnector
org.eclipse.jetty.server.AbstractNetworkConnector
org.eclipse.jetty.server.DatagramServerConnector
org.eclipse.jetty.quic.quiche.server.QuicheServerConnector
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Connector
,NetworkConnector
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,Graceful
,LifeCycle
A server side network connector that uses a DatagramChannel
to listen on a network port for QUIC traffic.
This connector uses ConnectionFactory
s to configure the application protocols to be transported by QUIC.
The application protocol is negotiated during the connection establishment by QuicheSession
, and for each
QuicheStream
managed by QuicheSession
a ConnectionFactory
for the negotiated protocol is
used to create a Connection
for the correspondent StreamEndPoint
.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendable
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
Graceful.Shutdown, Graceful.ThrowingRunnable
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.NetworkConnector
NetworkConnector.Listener
-
Field Summary
Fields inherited from class org.eclipse.jetty.server.AbstractConnector
LOG
-
Constructor Summary
ConstructorsConstructorDescriptionQuicheServerConnector
(Server server, Executor executor, Scheduler scheduler, ByteBufferPool bufferPool, SslContextFactory.Server sslContextFactory, QuicheServerQuicConfiguration quicConfiguration, ConnectionFactory... factories) QuicheServerConnector
(Server server, SslContextFactory.Server sslContextFactory, QuicheServerQuicConfiguration quicConfiguration, ConnectionFactory... factories) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doStart()
Starts the managed lifecycle beans in the order they were added.Get the defaultConnectionFactory
associated with the default protocol name.int
void
setInputBufferSize
(int inputBufferSize) shutdown()
Shutdown the component.Methods inherited from class org.eclipse.jetty.server.DatagramServerConnector
accept, close, doStop, getLocalPort, getTransport, isOpen, newConnection, newEndPoint, open, openDatagramChannel, setIdleTimeout
Methods inherited from class org.eclipse.jetty.server.AbstractNetworkConnector
getHost, getPort, handleAcceptFailure, setHost, setPort, toString
Methods inherited from class org.eclipse.jetty.server.AbstractConnector
addConnectionFactory, addFirstConnectionFactory, addIfAbsentConnectionFactory, clearConnectionFactories, getAcceptorPriorityDelta, getAcceptors, getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultProtocol, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServer, getShutdownIdleTimeout, interruptAcceptors, isAccepting, isShutdown, join, join, onEndPointClosed, onEndPointOpened, removeConnectionFactory, setAccepting, setAcceptorPriorityDelta, setConnectionFactories, setDefaultProtocol, setName, setShutdownIdleTimeout
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.server.Connector
getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServer
Methods inherited from interface org.eclipse.jetty.util.component.Container
addBean, addBean, addEventListener, getBean, getBeans, getBeans, getCachedBeans, getContainedBeans, getEventListeners, isManaged, manage, removeBean, removeEventListener, unmanage
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
Methods inherited from interface org.eclipse.jetty.util.component.Graceful
isShutdown
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
-
Constructor Details
-
QuicheServerConnector
public QuicheServerConnector(Server server, SslContextFactory.Server sslContextFactory, QuicheServerQuicConfiguration quicConfiguration, ConnectionFactory... factories) -
QuicheServerConnector
public QuicheServerConnector(Server server, Executor executor, Scheduler scheduler, ByteBufferPool bufferPool, SslContextFactory.Server sslContextFactory, QuicheServerQuicConfiguration quicConfiguration, ConnectionFactory... factories)
-
-
Method Details
-
getSslContextFactory
-
getServerQuicConfiguration
-
getInputBufferSize
public int getInputBufferSize() -
setInputBufferSize
public void setInputBufferSize(int inputBufferSize) -
doStart
Description copied from class:ContainerLifeCycle
Starts the managed lifecycle beans in the order they were added.- Overrides:
doStart
in classDatagramServerConnector
- Throws:
Exception
- If there was a problem starting. Will cause a transition to FAILED state
-
getDefaultConnectionFactory
Description copied from interface:Connector
Get the defaultConnectionFactory
associated with the default protocol name.- Specified by:
getDefaultConnectionFactory
in interfaceConnector
- Overrides:
getDefaultConnectionFactory
in classAbstractConnector
- Returns:
- the default
ConnectionFactory
associated with the default protocol name
-
shutdown
Description copied from interface:Graceful
Shutdown the component. When this method returns, the component should not accept any new load.- Specified by:
shutdown
in interfaceGraceful
- Overrides:
shutdown
in classAbstractNetworkConnector
- Returns:
- A future that is completed once all load on the component is completed
-