Class ListenerService.AsynchronousListener<S,D>

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<S,D>
org.exoplatform.services.listener.ListenerService.AsynchronousListener<S,D>
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
Enclosing class:
ListenerService

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

    • AsynchronousListener

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

    • getName

      public String getName()
      Specified by:
      getName in interface org.exoplatform.container.component.ComponentPlugin
      Overrides:
      getName in class org.exoplatform.container.component.BaseComponentPlugin
    • setName

      public void setName(String s)
      Specified by:
      setName in interface org.exoplatform.container.component.ComponentPlugin
      Overrides:
      setName in class org.exoplatform.container.component.BaseComponentPlugin
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.exoplatform.container.component.ComponentPlugin
      Overrides:
      getDescription in class org.exoplatform.container.component.BaseComponentPlugin
    • setDescription

      public void setDescription(String s)
      Specified by:
      setDescription in interface org.exoplatform.container.component.ComponentPlugin
      Overrides:
      setDescription in class org.exoplatform.container.component.BaseComponentPlugin
    • onEvent

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