Package org.eclipse.jetty.io
Class FillInterest
java.lang.Object
org.eclipse.jetty.io.FillInterest
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
A Utility class to help implement
EndPoint.fillInterested(Callback)
by keeping state and calling the context and callback objects.-
Method Summary
Modifier and TypeMethodDescriptionbooleanfillable()Deprecated.Call to signal that a read is now possible.Deprecated.booleanDeprecated.voidonClose()Deprecated.booleanDeprecated.Call to signal a failure to a registered interestvoidDeprecated.Call to register interest in a callback when a read is possible.Deprecated.toString()Deprecated.booleantryRegister(Callback callback) Deprecated.Call to register interest in a callback when a read is possible.
-
Method Details
-
register
Deprecated.Call to register interest in a callback when a read is possible. The callback will be called either immediately ifneedsFillInterest()returns true or eventually oncefillable()is called.- Parameters:
callback- the callback to register- Throws:
ReadPendingException- if unable to read due to pending read op
-
tryRegister
Deprecated.Call to register interest in a callback when a read is possible. The callback will be called either immediately ifneedsFillInterest()returns true or eventually oncefillable()is called.- Parameters:
callback- the callback to register- Returns:
- true if the register succeeded
-
fillable
public boolean fillable()Deprecated.Call to signal that a read is now possible.- Returns:
- whether the callback was notified that a read is now possible
-
isInterested
public boolean isInterested()Deprecated.- Returns:
- True if a read callback has been registered
-
getCallbackInvocationType
Deprecated. -
onFail
Deprecated.Call to signal a failure to a registered interest- Parameters:
cause- the cause of the failure- Returns:
- true if the cause was passed to a
Callbackinstance
-
onClose
public void onClose()Deprecated. -
toString
Deprecated. -
toStateString
Deprecated.
-