Class HTTP3StreamConnection
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Connection
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.io.AbstractConnection
AbstractConnection.NonBlocking
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.Tunnel, Connection.UpgradeFrom, Connection.UpgradeTo
-
Constructor Summary
ConstructorsConstructorDescriptionHTTP3StreamConnection
(StreamEndPoint endPoint, Executor executor, MessageParser parser) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Registers read interest using the defaultCallback
withInvocable.InvocationType.BLOCKING
.void
Callback method invoked when this connection is closed.void
void
Callback method invoked when the endpoint is ready to be read.void
onFillInterestedFailed
(Throwable cause) Callback method invoked when the endpoint failed to be ready to be read.void
onOpen()
Callback method invoked when this connection is opened.protected boolean
onReadTimeout
(TimeoutException timeout) Callback method invoked when the endpoint failed to be ready to be read after a timeoutMethods inherited from class org.eclipse.jetty.io.AbstractConnection
addEventListener, close, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onIdleExpired, removeEventListener, setInputBufferSize, toString, tryFillInterested
-
Constructor Details
-
HTTP3StreamConnection
-
-
Method Details
-
getEndPoint
- Specified by:
getEndPoint
in interfaceConnection
- Overrides:
getEndPoint
in classAbstractConnection
- Returns:
- the
EndPoint
associated with this Connection.
-
onOpen
public void onOpen()Description copied from interface:Connection
Callback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onOpen
in interfaceConnection
- Overrides:
onOpen
in classAbstractConnection
-
onClose
Description copied from interface:Connection
Callback method invoked when this connection is closed.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onClose
in interfaceConnection
- Overrides:
onClose
in classAbstractConnection
- Parameters:
cause
- The cause of the close or null for a normal close
-
onFailure
-
onReadTimeout
Description copied from class:AbstractConnection
Callback method invoked when the endpoint failed to be ready to be read after a timeout
- Overrides:
onReadTimeout
in classAbstractConnection
- Parameters:
timeout
- the cause of the read timeout- Returns:
- true to signal that the endpoint must be closed, false to keep the endpoint open
-
fillInterested
public void fillInterested()Description copied from class:AbstractConnection
Registers read interest using the default
Callback
withInvocable.InvocationType.BLOCKING
.When read readiness is signaled,
AbstractConnection.onFillable()
orAbstractConnection.onFillInterestedFailed(Throwable)
will be invoked.This method should be used sparingly, mainly from
AbstractConnection.onOpen()
, andAbstractConnection.fillInterested(Callback)
should be preferred instead, passing aCallback
that specifies theInvocable.InvocationType
for each specific case where read interest needs to be registered.- Overrides:
fillInterested
in classAbstractConnection
- See Also:
-
onFillable
public void onFillable()Description copied from class:AbstractConnection
Callback method invoked when the endpoint is ready to be read.
- Specified by:
onFillable
in classAbstractConnection
- See Also:
-
onFillInterestedFailed
Description copied from class:AbstractConnection
Callback method invoked when the endpoint failed to be ready to be read.
- Overrides:
onFillInterestedFailed
in classAbstractConnection
- Parameters:
cause
- the exception that caused the failure
-
toConnectionString
- Overrides:
toConnectionString
in classAbstractConnection
-