java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.quic.common.ProtocolSession
- All Implemented Interfaces:
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.LifeCycle
public abstract class ProtocolSession
extends org.eclipse.jetty.util.component.ContainerLifeCycle
Represents an established stateful connection with a remote peer for a specific QUIC connection ID.
Differently from QuicSession, which is created during the initial phases of connection establishment
and it is not specific to a protocol, ProtocolSession is created only when the connection is established,
and it is protocol specific, depending on the protocol negotiated during the connection establishment.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA factory for protocol specific instances ofProtocolSession.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.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongintgetOrCreateStreamEndPoint(long streamId, Consumer<QuicStreamEndPoint> consumer) abstract RunnablegetStreamEndPoint(long streamId) voidinwardClose(long error, String reason) voidprotected abstract voidprotected voidprotected booleanprotected abstract booleanonReadable(long readableStreamId) protected voidonWritable(long writableStreamId) voidopenProtocolEndPoint(QuicStreamEndPoint endPoint) voidoutwardClose(long error, String reason) protected booleanprotected voidprotected voidproduce()shutdown()toString()Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, 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, 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.util.component.Container
getCachedBeans, getEventListenersMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelfMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
ProtocolSession
-
-
Method Details
-
getQuicSession
-
getIdleTimeout
public long getIdleTimeout() -
getMaxLocalStreams
public int getMaxLocalStreams() -
getProducerTask
-
produce
protected void produce() -
offer
-
getStreamEndPoint
-
getOrCreateStreamEndPoint
public QuicStreamEndPoint getOrCreateStreamEndPoint(long streamId, Consumer<QuicStreamEndPoint> consumer) -
processWritableStreams
protected void processWritableStreams() -
onWritable
protected void onWritable(long writableStreamId) -
processReadableStreams
protected boolean processReadableStreams() -
onReadable
protected abstract boolean onReadable(long readableStreamId) -
openProtocolEndPoint
-
onIdleTimeout
protected boolean onIdleTimeout() -
onFailure
-
inwardClose
-
outwardClose
-
shutdown
-
onClose
-
toString
- Overrides:
toStringin classorg.eclipse.jetty.util.component.AbstractLifeCycle
-