public void addEventListener ( EventType eventType , Consumer < PrimitiveEvent > listener ) { executor . execute ( ( ) -> eventListeners . computeIfAbsent ( eventType . canonicalize ( ) , e -> Sets . newLinkedHashSet ( ) ) . add ( listener ) ) ; }
Adds an event listener to the session .