public abstract class FillInterest extends Object
EndPoint.fillInterested(Callback)
by keeping state and calling the context and callback objects.| Modifier | Constructor and Description |
|---|---|
protected |
FillInterest() |
| Modifier and Type | Method and Description |
|---|---|
void |
fillable()
Call to signal that a read is now possible.
|
boolean |
isInterested() |
protected abstract boolean |
needsFill()
Register the read interest
Abstract method to be implemented by the Specific ReadInterest to
enquire if a read is immediately possible and if not to schedule a future
call to
fillable() or onFail(Throwable) |
void |
onClose() |
boolean |
onFail(Throwable cause)
Call to signal a failure to a registered interest
|
<C> void |
register(Callback callback)
Call to register interest in a callback when a read is possible.
|
String |
toString() |
public <C> void register(Callback callback) throws ReadPendingException
needsFill()
returns true or eventually once fillable() is called.callback - ReadPendingExceptionpublic void fillable()
public boolean isInterested()
public boolean onFail(Throwable cause)
Callback instancepublic void onClose()
protected abstract boolean needsFill()
throws IOException
fillable() or onFail(Throwable)IOExceptionCopyright © 1995-2015 Webtide. All Rights Reserved.