Package org.eclipse.jetty.io
Class FillInterest
- java.lang.Object
-
- org.eclipse.jetty.io.FillInterest
-
@Deprecated(since="2021-05-27") public abstract class FillInterest extends java.lang.Object
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A Utility class to help implementEndPoint.fillInterested(Callback)
by keeping state and calling the context and callback objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
fillable()
Deprecated.Call to signal that a read is now possible.Invocable.InvocationType
getCallbackInvocationType()
Deprecated.boolean
isInterested()
Deprecated.void
onClose()
Deprecated.boolean
onFail(java.lang.Throwable cause)
Deprecated.Call to signal a failure to a registered interestvoid
register(Callback callback)
Deprecated.Call to register interest in a callback when a read is possible.java.lang.String
toStateString()
Deprecated.java.lang.String
toString()
Deprecated.boolean
tryRegister(Callback callback)
Deprecated.Call to register interest in a callback when a read is possible.
-
-
-
Method Detail
-
register
public void register(Callback callback) throws java.nio.channels.ReadPendingException
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:
java.nio.channels.ReadPendingException
- if unable to read due to pending read op
-
tryRegister
public boolean tryRegister(Callback callback)
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
public Invocable.InvocationType getCallbackInvocationType()
Deprecated.
-
onFail
public boolean onFail(java.lang.Throwable cause)
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
Callback
instance
-
onClose
public void onClose()
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
toStateString
public java.lang.String toStateString()
Deprecated.
-
-