public abstract class FillInterest extends Object
EndPoint.fillInterested(Callback)
by keeping state and calling the context and callback objects.| Modifier and Type | Method and Description |
|---|---|
boolean |
fillable()
Call to signal that a read is now possible.
|
Invocable.InvocationType |
getCallbackInvocationType() |
boolean |
isInterested() |
void |
onClose() |
boolean |
onFail(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.
|
String |
toStateString() |
String |
toString() |
boolean |
tryRegister(Callback callback)
Call to register interest in a callback when a read is possible.
|
public void register(Callback callback) throws ReadPendingException
needsFillInterest()
returns true or eventually once fillable() is called.callback - the callback to registerReadPendingException - 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(Throwable cause)
cause - the cause of the failureCallback instancepublic void onClose()
public String toStateString()
Copyright © 2010 - 2020 Adobe. All Rights Reserved