BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.webservice.async
Interface FutureResult


public interface FutureResult

The FutureResult object acts as a placeholder for the impending result of an asynchronous invoke of a Web Service.

For example, assume a Web service has an operation with the following signature:

String buy(String ticker, int num);

To invoke the operation asynchronously, you use the following two methods from the clientgen-generated stubs:

FutureResult startBuy(String ticker, int num, AsyncInfo ctx);
String endBuy(FutureResult res);

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

Method Summary
 boolean isCompleted()
          Checks to see whether the asynchronous invocation of the method has completed.
 

Method Detail

isCompleted

public boolean isCompleted()
Checks to see whether the asynchronous invocation of the method has completed. Once this method returns true, you can call the end() method to pick up the result.

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

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