Package org.eclipse.jetty.quic.server
Class QuicServerConnector
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.quic.server.QuicServerConnector
- All Implemented Interfaces:
Closeable,AutoCloseable,org.eclipse.jetty.server.Connector,org.eclipse.jetty.server.NetworkConnector,org.eclipse.jetty.util.component.Container,org.eclipse.jetty.util.component.Destroyable,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.Dumpable.DumpableContainer,org.eclipse.jetty.util.component.Graceful,org.eclipse.jetty.util.component.LifeCycle
public class QuicServerConnector
extends org.eclipse.jetty.server.AbstractNetworkConnector
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.
- See Also:
-
QuicConfiguration
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
org.eclipse.jetty.util.component.Graceful.Shutdown, org.eclipse.jetty.util.component.Graceful.ThrowingRunnableNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.server.AbstractConnector
LOGFields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
ConstructorsConstructorDescriptionQuicServerConnector(org.eclipse.jetty.server.Server server, Executor executor, org.eclipse.jetty.util.thread.Scheduler scheduler, org.eclipse.jetty.io.ByteBufferPool bufferPool, org.eclipse.jetty.util.ssl.SslContextFactory.Server sslContextFactory, org.eclipse.jetty.server.ConnectionFactory... factories) QuicServerConnector(org.eclipse.jetty.server.Server server, org.eclipse.jetty.util.ssl.SslContextFactory.Server sslContextFactory, org.eclipse.jetty.server.ConnectionFactory... factories) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept(int acceptorID) protected voiddoStart()protected voiddoStop()intintintorg.eclipse.jetty.quic.common.QuicConfigurationbooleanisOpen()booleanbooleanvoidopen()protected DatagramChannelvoidsetIdleTimeout(long idleTimeout) voidsetInputBufferSize(int inputBufferSize) voidsetOutputBufferSize(int outputBufferSize) voidsetUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) voidsetUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers) shutdown()Methods inherited from class org.eclipse.jetty.server.AbstractNetworkConnector
close, getHost, getPort, handleAcceptFailure, setHost, setPort, toStringMethods inherited from class org.eclipse.jetty.server.AbstractConnector
addConnectionFactory, addFirstConnectionFactory, addIfAbsentConnectionFactory, clearConnectionFactories, getAcceptorPriorityDelta, getAcceptors, getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getDefaultProtocol, getExecutor, getHttpChannelListeners, 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, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, 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, getDefaultConnectionFactory, 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
dump, dump, dumpSelfMethods 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
-
QuicServerConnector
public QuicServerConnector(org.eclipse.jetty.server.Server server, org.eclipse.jetty.util.ssl.SslContextFactory.Server sslContextFactory, org.eclipse.jetty.server.ConnectionFactory... factories) -
QuicServerConnector
public QuicServerConnector(org.eclipse.jetty.server.Server server, Executor executor, org.eclipse.jetty.util.thread.Scheduler scheduler, org.eclipse.jetty.io.ByteBufferPool bufferPool, org.eclipse.jetty.util.ssl.SslContextFactory.Server sslContextFactory, org.eclipse.jetty.server.ConnectionFactory... factories)
-
-
Method Details
-
getQuicConfiguration
public org.eclipse.jetty.quic.common.QuicConfiguration getQuicConfiguration() -
getLocalPort
public int getLocalPort()- Specified by:
getLocalPortin interfaceorg.eclipse.jetty.server.NetworkConnector- Overrides:
getLocalPortin classorg.eclipse.jetty.server.AbstractNetworkConnector
-
getInputBufferSize
public int getInputBufferSize() -
setInputBufferSize
public void setInputBufferSize(int inputBufferSize) -
getOutputBufferSize
public int getOutputBufferSize() -
setOutputBufferSize
public void setOutputBufferSize(int outputBufferSize) -
isUseInputDirectByteBuffers
public boolean isUseInputDirectByteBuffers() -
setUseInputDirectByteBuffers
public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) -
isUseOutputDirectByteBuffers
public boolean isUseOutputDirectByteBuffers() -
setUseOutputDirectByteBuffers
public void setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers) -
isOpen
public boolean isOpen() -
doStart
- Overrides:
doStartin classorg.eclipse.jetty.server.AbstractNetworkConnector- Throws:
Exception
-
open
- Specified by:
openin interfaceorg.eclipse.jetty.server.NetworkConnector- Overrides:
openin classorg.eclipse.jetty.server.AbstractNetworkConnector- Throws:
IOException
-
openDatagramChannel
- Throws:
IOException
-
setIdleTimeout
public void setIdleTimeout(long idleTimeout) - Overrides:
setIdleTimeoutin classorg.eclipse.jetty.server.AbstractConnector
-
doStop
- Overrides:
doStopin classorg.eclipse.jetty.server.AbstractNetworkConnector- Throws:
Exception
-
shutdown
- Specified by:
shutdownin interfaceorg.eclipse.jetty.util.component.Graceful- Overrides:
shutdownin classorg.eclipse.jetty.server.AbstractNetworkConnector
-
getTransport
-
accept
protected void accept(int acceptorID) - Specified by:
acceptin classorg.eclipse.jetty.server.AbstractConnector
-