Package 

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>
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String TAG
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean cancel(boolean mayInterruptIfRunning)
      boolean isCancelled()
      boolean isDone()
      T get()
      T get(long timeout, TimeUnit unit)
      void onSuccess(T token) Called when an asynchronous call completes successfully.
      void onException(Exception e) Called when an asynchronous call fails to complete.
      void reset()
      • Methods inherited from class org.forgerock.android.auth.NodeListener

        getStage, onCallbackReceived, onCallbackReceived, parseCallback
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • cancel

         boolean cancel(boolean mayInterruptIfRunning)
      • onSuccess

         void onSuccess(T token)

        Called when an asynchronous call completes successfully.

      • onException

         void onException(Exception e)

        Called when an asynchronous call fails to complete.

        Parameters:
        e - the reason for failure