BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.webservice.async
Interface FutureResult

All Known Implementing Classes:
FutureResultImpl

public interface FutureResult

TODO: implement this as a class This class is used in async invocation of a Web service.

Author:
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.

Method Summary
 void abort()
          Aborts the invocation.
 java.lang.Object getResult()
           
 boolean isCompleted()
          This method should be called to test the completion of the async invocation.
 void waitFor(long timeout)
          Blocks the thread until the result is ready or the timeout expires.
 

Method Detail

isCompleted

public boolean isCompleted()
This method should be called to test the completion of the async invocation.

Returns:
true if invocation is completed and the result is ready to be picked up by calling endInvoke method

waitFor

public void waitFor(long timeout)
Blocks the thread until the result is ready or the timeout expires.

Parameters:
timeout - how many millis to wait for the result

abort

public void abort()
Aborts the invocation. The result of the invoke is disregarded.

getResult

public java.lang.Object getResult()
                           throws java.rmi.RemoteException

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b