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
Modifier and TypeClassDescriptionstatic interface
A factory for protocol specific instances ofProtocolSession
.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
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
int
getOrCreateStreamEndPoint
(long streamId, Consumer<QuicStreamEndPoint> consumer) abstract Runnable
getStreamEndPoint
(long streamId) void
inwardClose
(long error, String reason) void
protected abstract void
protected void
protected boolean
protected abstract boolean
onReadable
(long readableStreamId) protected void
onWritable
(long writableStreamId) void
openProtocolEndPoint
(QuicStreamEndPoint endPoint) void
outwardClose
(long error, String reason) protected boolean
protected void
protected void
produce()
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, 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.util.component.Container
getCachedBeans, getEventListeners
Methods 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:
toString
in classAbstractLifeCycle
-