org.exoplatform.services.listener
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:
- 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListenerService.AsynchronousListener
public ListenerService.AsynchronousListener(Listener<S,D> listener)
getName
public String getName()
- Specified by:
getName in interface ComponentPlugin- Overrides:
getName in class BaseComponentPlugin
setName
public void setName(String s)
- Specified by:
setName in interface ComponentPlugin- Overrides:
setName in class BaseComponentPlugin
getDescription
public String getDescription()
- Specified by:
getDescription in interface ComponentPlugin- Overrides:
getDescription in class BaseComponentPlugin
setDescription
public void setDescription(String s)
- Specified by:
setDescription in interface ComponentPlugin- Overrides:
setDescription in class 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
Copyright © 2013 eXo Platform SAS. All Rights Reserved.