de.netseeker.ejoe
Interface EJAsyncCallback


public interface EJAsyncCallback

A callback interface, which is able to process events of asynchronous client requests.

Since:
0.3.9.1
Author:
netseeker

Method Summary
 void onErrorOccured(long ident, java.io.IOException e)
          This method will be called by EJClient whenever an error occured while processing the related asynchronous client request.
 void onRequestProcessed(long ident, java.lang.Object response)
          This method will be called by EJClient whenever the related asynchronous client request was successfully processed.
 

Method Detail

onRequestProcessed

void onRequestProcessed(long ident,
                        java.lang.Object response)
This method will be called by EJClient whenever the related asynchronous client request was successfully processed.

Parameters:
ident - the unique identification number of the related asynchronous request
response - the server response, can be null if no response was received

onErrorOccured

void onErrorOccured(long ident,
                    java.io.IOException e)
This method will be called by EJClient whenever an error occured while processing the related asynchronous client request.

Parameters:
ident - the unique identification number of the related asynchronous request
e - the exception, which either has occured either in EJClient or was received by EJClient from EJServer


Copyright © 2005-2007 netseeker. All Rights Reserved.