Class AsyncResult

  • All Implemented Interfaces:
    java.lang.Runnable, IAsyncResult

    public class AsyncResult
    extends java.lang.Object
    implements IAsyncResult, java.lang.Runnable
    Access the results of the Async call
    Author:
    Davanum Srinivas (dims@yahoo.com)
    • Constructor Summary

      Constructors 
      Constructor Description
      AsyncResult​(AsyncCall ac, QName opName, java.lang.Object[] params)
      Constructor AsyncResult
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void abort()
      Method abort
      java.lang.Throwable getException()
      Method getException
      java.lang.Object getResponse()
      Method getResponse
      Status getStatus()
      Method getStatus
      void run()
      Method run
      void waitFor​(long timeout)
      Method waitFor
      • Methods inherited from class java.lang.Object

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

      • AsyncResult

        public AsyncResult​(AsyncCall ac,
                           QName opName,
                           java.lang.Object[] params)
        Constructor AsyncResult
        Parameters:
        ac -
        opName -
        params -
    • Method Detail

      • abort

        public void abort()
        Method abort
        Specified by:
        abort in interface IAsyncResult
      • waitFor

        public void waitFor​(long timeout)
                     throws java.lang.InterruptedException
        Method waitFor
        Specified by:
        waitFor in interface IAsyncResult
        Parameters:
        timeout -
        Throws:
        java.lang.InterruptedException
      • getResponse

        public java.lang.Object getResponse()
        Method getResponse
        Specified by:
        getResponse in interface IAsyncResult
        Returns:
      • getException

        public java.lang.Throwable getException()
        Method getException
        Specified by:
        getException in interface IAsyncResult
        Returns:
      • run

        public void run()
        Method run
        Specified by:
        run in interface java.lang.Runnable