com.teamdev.xpcom
Interface AsyncHandler

All Known Implementing Classes:
DefaultAsyncHandler

public interface AsyncHandler

Asynchronous execution handler interface. Implementing this interface allows you to react on events that are executed in the XPCOM event processing thread when invoked asynchronously from another thread, using Xpcom.invokeLater()

NOTE: Xpcom.invokeAndWait() calls are not affected by this system.


Method Summary
 void after(java.lang.Throwable t)
          Called on the XPCOM event processing thread, before the body of asynchronous code is executed.
 void before()
          Called on the XPCOM event processing thread, before the body of asynchronous code is executed.
 

Method Detail

before

void before()
Called on the XPCOM event processing thread, before the body of asynchronous code is executed.


after

void after(java.lang.Throwable t)
Called on the XPCOM event processing thread, before the body of asynchronous code is executed.

Parameters:
t - an exception that was thrown during asynchronous method execution, or null if execution completed successfully. This exception will not be re-thrown by the outside code.