Package io.getstream.core.faye.emitter
Class EventEmitter<T>
- java.lang.Object
-
- io.getstream.core.faye.emitter.EventEmitter<T>
-
public class EventEmitter<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EventEmitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(java.lang.String event, EventListener<T> listener)
void
addListener(java.lang.String event, EventListener<T> listener, int limit)
void
dispose()
void
emit(java.lang.String event, T data)
boolean
hasListeners(java.lang.String event)
boolean
isMounted()
void
off(java.lang.String event)
void
on(java.lang.String event, EventListener<T> listener)
void
on(java.lang.String event, EventListener<T> listener, int limit)
void
removeAllListeners()
void
removeListener(java.lang.String event, EventListener<T> listener)
void
setErrorListener(ErrorListener errorListener)
-
-
-
Method Detail
-
setErrorListener
public void setErrorListener(ErrorListener errorListener)
-
isMounted
public boolean isMounted()
-
emit
public void emit(java.lang.String event, T data)
-
on
public void on(java.lang.String event, EventListener<T> listener)
-
on
public void on(java.lang.String event, EventListener<T> listener, int limit)
-
addListener
public void addListener(java.lang.String event, EventListener<T> listener)
-
addListener
public void addListener(java.lang.String event, EventListener<T> listener, int limit)
-
off
public void off(java.lang.String event)
-
removeListener
public void removeListener(java.lang.String event, EventListener<T> listener)
-
removeAllListeners
public void removeAllListeners()
-
hasListeners
public boolean hasListeners(java.lang.String event) throws java.lang.Exception
- Throws:
java.lang.Exception
-
dispose
public void dispose()
-
-