public class EventEmitter extends Object implements org.irenical.lifecycle.LifeCycle
| Constructor and Description |
|---|
EventEmitter() |
EventEmitter(ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
String |
addListener(String entity,
Consumer listener) |
void |
clear() |
void |
fire(String entity,
String name,
String serviceId,
Node node,
Object target,
long elapsedMillis) |
int |
getListenerCount() |
int |
getListenerCount(String entity) |
<ERROR extends Exception> |
isRunning() |
void |
removeListener(String listenerId) |
<ERROR extends Exception> |
start() |
<ERROR extends Exception> |
stop() |
public EventEmitter()
public EventEmitter(ExecutorService executorService)
public void fire(String entity, String name, String serviceId, Node node, Object target, long elapsedMillis)
public void removeListener(String listenerId)
public void clear()
public int getListenerCount()
public int getListenerCount(String entity)
public <ERROR extends Exception> void start() throws ERROR extends Exception
start in interface org.irenical.lifecycle.LifeCycleERROR extends Exceptionpublic <ERROR extends Exception> void stop() throws ERROR extends Exception
stop in interface org.irenical.lifecycle.LifeCycleERROR extends ExceptionCopyright © 2017 Irenical. All rights reserved.