Top Description Inners Fields Constructors Methods
org.eclipse.jetty.quic.server

public Class ServerQuicConnection

extends QuicConnection
Class Inheritance
Imports
java.io.IOException, java.net.InetSocketAddress, .SocketAddress, java.nio.ByteBuffer, java.util.Iterator, java.util.concurrent.TimeoutException, org.eclipse.jetty.io.ByteBufferPool, .CyclicTimeouts, .EndPoint, .RetainableByteBuffer, org.eclipse.jetty.quic.common.QuicConnection, .QuicSession, org.eclipse.jetty.quic.quiche.QuicheConnection, org.eclipse.jetty.quic.server.internal.SimpleTokenMinter, .SimpleTokenValidator, org.eclipse.jetty.util.BufferUtil, .Callback, org.eclipse.jetty.util.thread.Scheduler, org.slf4j.Logger, .LoggerFactory

The server specific implementation of QuicConnection.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final QuicServerConnector
private static final Logger
private final ServerQuicConnection.SessionTimeouts

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected QuicSession
public QuicServerConnector
protected ServerQuicSession
newQuicSession(SocketAddress remoteAddress, QuicheConnection quicheConnection)

public boolean
onIdleExpired(TimeoutException timeoutException)

Implements abstract org.eclipse.jetty.quic.common.QuicConnection.onIdleExpired.

Implements org.eclipse.jetty.io.Connection.onIdleExpired.

Callback method invoked upon an idle timeout event.

public void
onOpen()

Overrides org.eclipse.jetty.quic.common.QuicConnection.onOpen.

Implements org.eclipse.jetty.io.Connection.onOpen.

Callback method invoked when this connection is opened.

public void
public void
Inherited from org.eclipse.jetty.quic.common.QuicConnection:
addEventListenerclosefillInterestedgetByteBufferPoolgetEndPointgetOutputBufferSizegetQuicSessionsgetSchedulerisUseInputDirectByteBuffersisUseOutputDirectByteBuffersonCloseonFailureonFillableremoveEventListenersetOutputBufferSizesetUseInputDirectByteBufferssetUseOutputDirectByteBufferswrite

Field Detail

connectorback to summary
private final QuicServerConnector connector
LOGback to summary
private static final Logger LOG

Hides org.eclipse.jetty.quic.common.QuicConnection.LOG.

sessionTimeoutsback to summary
private final ServerQuicConnection.SessionTimeouts sessionTimeouts

Constructor Detail

ServerQuicConnectionback to summary
public ServerQuicConnection(QuicServerConnector connector, EndPoint endPoint)

Method Detail

createSessionback to summary
protected QuicSession createSession(SocketAddress remoteAddress, ByteBuffer cipherBuffer) throws IOException

Implements abstract org.eclipse.jetty.quic.common.QuicConnection.createSession.

Annotations
@Override
getQuicServerConnectorback to summary
public QuicServerConnector getQuicServerConnector()
newQuicSessionback to summary
protected ServerQuicSession newQuicSession(SocketAddress remoteAddress, QuicheConnection quicheConnection)
onIdleExpiredback to summary
public boolean onIdleExpired(TimeoutException timeoutException)

Implements abstract org.eclipse.jetty.quic.common.QuicConnection.onIdleExpired.

Implements org.eclipse.jetty.io.Connection.onIdleExpired.

Doc from org.eclipse.jetty.io.Connection.onIdleExpired.

Callback method invoked upon an idle timeout event.

Implementations of this method may return true to indicate that the idle timeout handling should proceed normally, typically failing the EndPoint and causing it to be closed.

When false is returned, the handling of the idle timeout event is halted immediately and the EndPoint left in the state it was before the idle timeout event.

Annotations
@Override
onOpenback to summary
public void onOpen()

Overrides org.eclipse.jetty.quic.common.QuicConnection.onOpen.

Implements org.eclipse.jetty.io.Connection.onOpen.

Doc from org.eclipse.jetty.io.Connection.onOpen.

Callback method invoked when this connection is opened.

Creators of the connection implementation are responsible for calling this method.

Annotations
@Override
outwardCloseback to summary
public void outwardClose(QuicSession session, Throwable failure)

Overrides org.eclipse.jetty.quic.common.QuicConnection.outwardClose.

Annotations
@Override
scheduleback to summary
public void schedule(ServerQuicSession session)
org.eclipse.jetty.quic.server back to summary

private Class ServerQuicConnection.SessionTimeouts

extends CyclicTimeouts<ServerQuicSession>
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected Iterator<ServerQuicSession>
protected boolean
onExpired(ServerQuicSession session)

Implements abstract org.eclipse.jetty.io.CyclicTimeouts.onExpired.

Invoked during the iteration when the given entity is expired.

Inherited from org.eclipse.jetty.io.CyclicTimeouts:
destroyschedule

Constructor Detail

SessionTimeoutsback to summary
private SessionTimeouts(Scheduler scheduler)

Method Detail

iteratorback to summary
protected Iterator<ServerQuicSession> iterator()

Implements abstract org.eclipse.jetty.io.CyclicTimeouts.iterator.

Annotations
@Override
onExpiredback to summary
protected boolean onExpired(ServerQuicSession session)

Implements abstract org.eclipse.jetty.io.CyclicTimeouts.onExpired.

Doc from org.eclipse.jetty.io.CyclicTimeouts.onExpired.

Invoked during the iteration when the given entity is expired.

This method may be invoked multiple times, and even concurrently, for the same expirable entity and therefore the expiration of the entity, if any, should be an idempotent action.

When false is returned, the implementation should adjust the Expirable expiration, so that a call to Expirable#getExpireNanoTime() after this method has returned yields a new expiration nanoTime.

Annotations
@Override