com.neeve.aep
Interface IAepAsynchronousEventHandler


public interface IAepAsynchronousEventHandler

An event handler for events that cannot be dispatched from the AepEngine's normal dispatcher.


Method Summary
 void onEvent(Event event)
          Invoked for asynchronous engine events.
 

Method Detail

onEvent

void onEvent(Event event)
Invoked for asynchronous engine events. This method is not invoked from the AepEngine's thread. As such this handler must obey the same threading rules as any other external thread.

If the handler intends to keep a reference to the Event beyond the the scope of this method call, it must call Event.acquire() to preserve a reference to the event, and subsequently call Event.dispose() when it is done. Otherwise, the handler, should not invoke the Event.dispose() method.

Parameters:
event - The event.


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.