public void addEventListener(EventType eventType, Consumer<PrimitiveEvent> listener) {
    executor.execute(() -> eventListeners.computeIfAbsent(eventType.canonicalize(), e -> Sets.newLinkedHashSet()).add(listener));
  }
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.

@param listener the event listener callback