Class HTTP3StreamConnection
- All Implemented Interfaces:
 Closeable, AutoCloseable, Connection
- 
Nested Class Summary
Nested classes/interfaces inherited from class AbstractConnection
AbstractConnection.NonBlockingNested classes/interfaces inherited from interface Connection
Connection.Listener, Connection.Tunnel, Connection.UpgradeFrom, Connection.UpgradeTo - 
Constructor Summary
ConstructorsConstructorDescriptionHTTP3StreamConnection(StreamEndPoint endPoint, Executor executor, MessageParser parser)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters read interest using the defaultCallbackwithInvocable.InvocationType.BLOCKING.voidCallback method invoked when this connection is closed.voidvoidCallback method invoked when the endpoint is ready to be read.voidonFillInterestedFailed(Throwable cause) Callback method invoked when the endpoint failed to be ready to be read.voidonOpen()Callback method invoked when this connection is opened.protected booleanonReadTimeout(TimeoutException timeout) Callback method invoked when the endpoint failed to be ready to be read after a timeoutMethods inherited from class 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:
 getEndPointin interfaceConnection- Overrides:
 getEndPointin classAbstractConnection- Returns:
 - the 
EndPointassociated with this Connection. 
 - 
onOpen
public void onOpen()Description copied from interface:ConnectionCallback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
 onOpenin interfaceConnection- Overrides:
 onOpenin classAbstractConnection
 - 
onClose
Description copied from interface:ConnectionCallback method invoked when this connection is closed.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
 onClosein interfaceConnection- Overrides:
 onClosein classAbstractConnection- Parameters:
 cause- The cause of the close or null for a normal close
 - 
onFailure
 - 
onReadTimeout
Description copied from class:AbstractConnectionCallback method invoked when the endpoint failed to be ready to be read after a timeout
- Overrides:
 onReadTimeoutin 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:AbstractConnectionRegisters read interest using the default
CallbackwithInvocable.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 aCallbackthat specifies theInvocable.InvocationTypefor each specific case where read interest needs to be registered.- Overrides:
 fillInterestedin classAbstractConnection- See Also:
 
 - 
onFillable
public void onFillable()Description copied from class:AbstractConnectionCallback method invoked when the endpoint is ready to be read.
- Specified by:
 onFillablein classAbstractConnection- See Also:
 
 - 
onFillInterestedFailed
Description copied from class:AbstractConnectionCallback method invoked when the endpoint failed to be ready to be read.
- Overrides:
 onFillInterestedFailedin classAbstractConnection- Parameters:
 cause- the exception that caused the failure
 - 
toConnectionString
- Overrides:
 toConnectionStringin classAbstractConnection
 
 -