Package org.eclipse.jetty.quic.common
Class ProtocolSession
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.quic.common.ProtocolSession
- All Implemented Interfaces:
Container,Destroyable,Dumpable,Dumpable.DumpableContainer,LifeCycle
- Direct Known Subclasses:
ClientProtocolSession,ServerProtocolSession
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
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.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
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, 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.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 classAbstractLifeCycle
-