public abstract class FillInterest
extends java.lang.Object
EndPoint.fillInterested(Callback)
by keeping state and calling the context and callback objects.| Modifier | Constructor | Description |
|---|---|---|
protected |
FillInterest() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
fillable() |
Call to signal that a read is now possible.
|
Invocable.InvocationType |
getCallbackInvocationType() |
|
boolean |
isInterested() |
|
protected abstract void |
needsFillInterest() |
Register the read interest
Abstract method to be implemented by the Specific ReadInterest to
schedule a future call to
fillable() or onFail(Throwable) |
void |
onClose() |
|
boolean |
onFail(java.lang.Throwable cause) |
Call to signal a failure to a registered interest
|
void |
register(Callback callback) |
Call to register interest in a callback when a read is possible.
|
java.lang.String |
toStateString() |
|
java.lang.String |
toString() |
|
boolean |
tryRegister(Callback callback) |
Call to register interest in a callback when a read is possible.
|
public void register(Callback callback) throws java.nio.channels.ReadPendingException
needsFillInterest()
returns true or eventually once fillable() is called.callback - the callback to registerjava.nio.channels.ReadPendingException - if unable to read due to pending read oppublic boolean tryRegister(Callback callback)
needsFillInterest()
returns true or eventually once fillable() is called.callback - the callback to registerpublic boolean fillable()
public boolean isInterested()
public Invocable.InvocationType getCallbackInvocationType()
public boolean onFail(java.lang.Throwable cause)
cause - the cause of the failureCallback instancepublic void onClose()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStateString()
protected abstract void needsFillInterest()
throws java.io.IOException
fillable() or onFail(Throwable)java.io.IOException - if unable to fulfill interest in fillCopyright © 1995–2018 Webtide. All rights reserved.