code: public void notifyListeners(GerritConnectionEvent event) {
          for (ConnectionListener listener : listeners) {
              try {
                  switch(event) {
                  case GERRIT_CONNECTION_ESTABLISHED:
                      listener.connectionEstablished();
                      break;
                  case GERRIT_CONNECTION_DOWN:
                      listener.connectionDown();
                      break;
                  default:
                      break;
                  }
              } catch (Exception ex) {
                  logger.error("ConnectionListener threw Exception. ", ex);
              }
          }
      }
docs: Notifies all listeners of a Gerrit connection event.
  
  @param event the event.