Class AbstractConnection.NonBlocking
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.io.AbstractConnection.NonBlocking
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Connection
- Direct Known Subclasses:
ConnectHandler.DownstreamConnection
,ConnectHandler.UpstreamConnection
,InstructionStreamConnection
,NegotiatingClientConnection
,NegotiatingServerConnection
,ProxyProtocolClientConnectionFactory.ProxyProtocolConnection
,UnidirectionalStreamConnection
- Enclosing class:
AbstractConnection
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Registers read interest using the defaultCallback
withInvocable.InvocationType.NON_BLOCKING
.Methods inherited from class org.eclipse.jetty.io.AbstractConnection
addEventListener, close, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillable, onFillInterestedFailed, onIdleExpired, onOpen, onReadTimeout, removeEventListener, setInputBufferSize, toConnectionString, toString, tryFillInterested
-
Constructor Details
-
NonBlocking
-
-
Method Details
-
fillInterested
public void fillInterested()Registers read interest using the default
Callback
withInvocable.InvocationType.NON_BLOCKING
.When read readiness is signaled,
AbstractConnection.onFillable()
orAbstractConnection.onFillInterestedFailed(Throwable)
will be invoked.This method should be used sparingly, and
AbstractConnection.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:
-