Class EventEmitter<T>


  • public class EventEmitter<T>
    extends java.lang.Object
    • Constructor Detail

      • EventEmitter

        public EventEmitter()
    • 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()