electric.util.async
Interface IAsyncCallback


public interface IAsyncCallback

IAsyncCallback providers the facilities to get a callback with either response or exception object from an asynchronous invocation. An instance implementing this interface must be set on Async object before it is passed into an async invocation.

Author:
webMethods

Method Summary
 void receivedException(java.lang.Exception exception, Async async)
          This method is called when either an exception occurs while processing the response or an exception was returned by the server.
 void receivedResponse(java.lang.Object response, Async async)
          This method is called by the GLUE runtime when a response from an asynchronous invocation becomes available.
 

Method Detail

receivedResponse

public void receivedResponse(java.lang.Object response,
                             Async async)
This method is called by the GLUE runtime when a response from an asynchronous invocation becomes available. The response object may be cast to the same type sent by the server.

Parameters:
response - object sent by the server
async - async original async object

receivedException

public void receivedException(java.lang.Exception exception,
                              Async async)
This method is called when either an exception occurs while processing the response or an exception was returned by the server.

Parameters:
exception -
async - async original async object


copyright© 2001-2004 by webMethods All Rights Reserved.