Package org.forgerock.android.auth
Class FRListenerFuture
-
- All Implemented Interfaces:
-
java.util.concurrent.Future,org.forgerock.android.auth.FRListener
public class FRListenerFuture<T> implements FRListener<T>, Future<V>
A
Futurerepresents the result of an FRListener
-
-
Constructor Summary
Constructors Constructor Description FRListenerFuture()
-
Method Summary
Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)booleanisCancelled()booleanisDone()Tget()Tget(long timeout, @NonNull() TimeUnit unit)voidonSuccess(T token)Called when an asynchronous call completes successfully. voidonException(Exception e)Called when an asynchronous call fails to complete. -
-
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
-
-
-
-