Class ListenerService.AsynchronousListener<S,D>

java.lang.Object
org.exoplatform.services.listener.ListenerService.AsynchronousListener<S,D>
All Implemented Interfaces:
ListenerBase<S,D>
Enclosing class:
ListenerService

protected class ListenerService.AsynchronousListener<S,D> extends Object implements ListenerBase<S,D>
This AsynchronousListener is a wrapper for original listener, that executes wrapped listeners onEvent() in separate thread.
  • Constructor Details

    • AsynchronousListener

      public AsynchronousListener(ListenerBase<S,D> listener)
  • Method Details

    • onEvent

      public void onEvent(Event<S,D> event)
      Description copied from interface: ListenerBase
      This method should be invoked when an event with the same name is broadcasted
      Specified by:
      onEvent in interface ListenerBase<S,D>
      Parameters:
      event - the event instance