Package org.eclipse.jetty.quic.server
Class ServerProtocolSession
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.quic.common.ProtocolSession
-
- org.eclipse.jetty.quic.server.ServerProtocolSession
-
- All Implemented Interfaces:
Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
public class ServerProtocolSession extends ProtocolSession
Server specific implementation of
ProtocolSession
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.quic.common.ProtocolSession
ProtocolSession.Factory
-
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
-
-
Constructor Summary
Constructors Constructor Description ServerProtocolSession(ServerQuicSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStart()
Starts the managed lifecycle beans in the order they were added.protected void
doStop()
Stops the managed lifecycle beans in the reverse order they were added.java.lang.Runnable
getProducerTask()
ServerQuicSession
getQuicSession()
protected void
onClose(long error, java.lang.String reason)
protected void
onFailure(long error, java.lang.String reason, java.lang.Throwable failure)
protected boolean
onReadable(long readableStreamId)
protected void
onStart()
protected void
onStop()
-
Methods inherited from class org.eclipse.jetty.quic.common.ProtocolSession
getIdleTimeout, getMaxLocalStreams, getOrCreateStreamEndPoint, getStreamEndPoint, inwardClose, offer, onIdleTimeout, onWritable, openProtocolEndPoint, outwardClose, processReadableStreams, processWritableStreams, produce, shutdown, toString
-
Methods 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, 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 Detail
-
ServerProtocolSession
public ServerProtocolSession(ServerQuicSession session)
-
-
Method Detail
-
getQuicSession
public ServerQuicSession getQuicSession()
- Overrides:
getQuicSession
in classProtocolSession
-
doStart
protected void doStart() throws java.lang.Exception
Description copied from class:ContainerLifeCycle
Starts the managed lifecycle beans in the order they were added.- Overrides:
doStart
in classContainerLifeCycle
- Throws:
AbstractLifeCycle.StopException
- If thrown, the lifecycle will immediately be stopped.java.lang.Exception
- If there was a problem starting. Will cause a transition to FAILED state
-
onStart
protected void onStart()
-
doStop
protected void doStop() throws java.lang.Exception
Description copied from class:ContainerLifeCycle
Stops the managed lifecycle beans in the reverse order they were added.- Overrides:
doStop
in classContainerLifeCycle
- Throws:
java.lang.Exception
- If there was a problem stopping. Will cause a transition to FAILED state
-
onStop
protected void onStop()
-
getProducerTask
public java.lang.Runnable getProducerTask()
- Specified by:
getProducerTask
in classProtocolSession
-
onReadable
protected boolean onReadable(long readableStreamId)
- Specified by:
onReadable
in classProtocolSession
-
onFailure
protected void onFailure(long error, java.lang.String reason, java.lang.Throwable failure)
- Overrides:
onFailure
in classProtocolSession
-
onClose
protected void onClose(long error, java.lang.String reason)
- Specified by:
onClose
in classProtocolSession
-
-