Package org.forgerock.android.auth
Class NodeListenerFuture
-
- All Implemented Interfaces:
-
java.util.concurrent.Future,org.forgerock.android.auth.FRListener,org.forgerock.android.auth.NodeListener
public abstract class NodeListenerFuture<T> implements NodeListener<T>, Future<V>
-
-
Constructor Summary
Constructors Constructor Description NodeListenerFuture()
-
Method Summary
Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)booleanisCancelled()booleanisDone()Tget()Tget(long timeout, TimeUnit unit)voidonSuccess(T token)Called when an asynchronous call completes successfully. voidonException(Exception e)Called when an asynchronous call fails to complete. voidreset()-
-
Method Detail
-
cancel
boolean cancel(boolean mayInterruptIfRunning)
-
isCancelled
boolean isCancelled()
-
isDone
boolean isDone()
-
onException
void onException(Exception e)
Called when an asynchronous call fails to complete.
- Parameters:
e- the reason for failure
-
reset
void reset()
-
-
-
-