com.jstatcom.engine
Class PCallAdapter

java.lang.Object
  extended by com.jstatcom.engine.PCallAdapter
All Implemented Interfaces:
PCallListener, java.util.EventListener

public abstract class PCallAdapter
extends java.lang.Object
implements PCallListener

An empty convenience implementation of PCallListener.

Author:
A. Benkwitz, Markus Kraetzig
See Also:
PCall, PCallListener

Constructor Summary
PCallAdapter()
           
 
Method Summary
 void finished(PCall pc)
          Invoked when a procedure finishes, no matter whether the call was successful, interrupted or erroneous.
 void queued(PCall pc)
          Invoked when a procedure was queued in the main worker thread.
 void started(PCall pc)
          Invoked when the procedure's run method was called within the main worker thread.
 void success()
          Invoked when a procedure finished successfully and was not interrupted.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCallAdapter

public PCallAdapter()
Method Detail

finished

public void finished(PCall pc)
Description copied from interface: PCallListener
Invoked when a procedure finishes, no matter whether the call was successful, interrupted or erroneous.

Specified by:
finished in interface PCallListener
Parameters:
pc - the calling object

queued

public void queued(PCall pc)
Description copied from interface: PCallListener
Invoked when a procedure was queued in the main worker thread.

Specified by:
queued in interface PCallListener
Parameters:
pc - the calling object

started

public void started(PCall pc)
Description copied from interface: PCallListener
Invoked when the procedure's run method was called within the main worker thread.

Specified by:
started in interface PCallListener
Parameters:
pc - the calling object

success

public void success()
Description copied from interface: PCallListener
Invoked when a procedure finished successfully and was not interrupted. This method is a convenience implementation, because it is the most common case. The functionality is the same as using finished plus checking the source call for success.

Specified by:
success in interface PCallListener