Class ThreadEventListener
- java.lang.Object
-
- org.nuxeo.runtime.trackers.concurrent.ThreadEventListener
-
- All Implemented Interfaces:
EventListener
public class ThreadEventListener extends Object implements EventListener
Wrap aThreadEventHandler
for being enlisted in theEventService
.- Since:
- 6.0
- Author:
- Stephane Lacoin at Nuxeo (aka matic)
-
-
Field Summary
Fields Modifier and Type Field Description protected ThreadEventHandler
handler
protected boolean
installed
-
Constructor Summary
Constructors Constructor Description ThreadEventListener(ThreadEventHandler anHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleEvent(Event anEvent)
An event was received.boolean
install()
boolean
isInstalled()
boolean
uninstall()
-
-
-
Field Detail
-
handler
protected final ThreadEventHandler handler
-
installed
protected boolean installed
-
-
Constructor Detail
-
ThreadEventListener
public ThreadEventListener(ThreadEventHandler anHandler)
-
-
Method Detail
-
handleEvent
public void handleEvent(Event anEvent)
Description copied from interface:EventListener
An event was received.- Specified by:
handleEvent
in interfaceEventListener
-
isInstalled
public boolean isInstalled()
-
uninstall
public boolean uninstall()
-
install
public boolean install()
-
-