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 ConnectionFactorys 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.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendableNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
Graceful.Shutdown, Graceful.ThrowingRunnableNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.ListenerNested 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 voiddoStart()Starts the managed lifecycle beans in the order they were added.Get the defaultConnectionFactoryassociated with the default protocol name.intvoidsetInputBufferSize(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, setIdleTimeoutMethods inherited from class org.eclipse.jetty.server.AbstractNetworkConnector
getHost, getPort, handleAcceptFailure, setHost, setPort, toStringMethods inherited from class org.eclipse.jetty.server.AbstractConnector
addConnectionFactory, addFirstConnectionFactory, addIfAbsentConnectionFactory, clearConnectionFactories, dump, 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, setShutdownIdleTimeoutMethods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, 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, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.server.Connector
getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServerMethods inherited from interface org.eclipse.jetty.util.component.Container
addBean, addBean, addEventListener, getBean, getBeans, getBeans, getCachedBeans, getContainedBeans, getEventListeners, isManaged, manage, removeBean, removeEventListener, unmanageMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpableMethods inherited from interface org.eclipse.jetty.util.component.Graceful
isShutdownMethods 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:ContainerLifeCycleStarts the managed lifecycle beans in the order they were added.- Overrides:
doStartin classDatagramServerConnector- Throws:
AbstractLifeCycle.StopException- If thrown, the lifecycle will immediately be stopped.Exception- If there was a problem starting. Will cause a transition to FAILED state
-
getDefaultConnectionFactory
Description copied from interface:ConnectorGet the defaultConnectionFactoryassociated with the default protocol name.- Specified by:
getDefaultConnectionFactoryin interfaceConnector- Overrides:
getDefaultConnectionFactoryin classAbstractConnector- Returns:
- the default
ConnectionFactoryassociated with the default protocol name
-
shutdown
Description copied from interface:GracefulShutdown the component. When this method returns, the component should not accept any new load.- Specified by:
shutdownin interfaceGraceful- Overrides:
shutdownin classAbstractNetworkConnector- Returns:
- A future that is completed once all load on the component is completed
-