org.systinet.wasp.async
Class GenericAsyncCallback

java.lang.Object
  extended byorg.systinet.wasp.async.GenericAsyncCallback
All Implemented Interfaces:
AsyncCallback

public abstract class GenericAsyncCallback
extends java.lang.Object
implements AsyncCallback

This class is a helper that provides generic implementation of AsyncCallback.onTimeout method, which has rare use.

Component:
Core

Constructor Summary
GenericAsyncCallback()
           
 
Method Summary
abstract  void onResponse(AsyncConversation asyncConversation)
          This method is called once the response for request identified by AsyncConversation parameter comes to client.
 void onTimeout(AsyncConversation asyncConversation)
          Default implementation is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericAsyncCallback

public GenericAsyncCallback()
Method Detail

onResponse

public abstract void onResponse(AsyncConversation asyncConversation)
Description copied from interface: AsyncCallback
This method is called once the response for request identified by AsyncConversation parameter comes to client.

Specified by:
onResponse in interface AsyncCallback
Parameters:
asyncConversation - AsyncConversation object, which indicates the invocation this response comes for. For more information on AsyncConversation see AsyncConversation

onTimeout

public void onTimeout(AsyncConversation asyncConversation)
Default implementation is empty.

Specified by:
onTimeout in interface AsyncCallback
Parameters:
asyncConversation -