public void removeOnReconnectListener(OnReconnect listener){
  if (listener != null) {
    boolean wasRemoved;
synchronized (reconnectListeners) {
      wasRemoved=reconnectListeners.remove(listener);
    }
    if (wasRemoved) {
      log.debug("Removed OnReconnect listener " + listener);
    }
 else {
      log.warn("Was asked to remove OnReconnect listener " + listener + ", but remove operation did not find it in the list of registered listeners.");
    }
  }
}

public void removeOnReconnectListener ( OnReconnect listener ) { if ( listener != null ) { boolean wasRemoved ; synchronized ( reconnectListeners ) { wasRemoved = reconnectListeners . remove ( listener ) ; } if ( wasRemoved ) { log . debug ( "Removed OnReconnect listener " + listener ) ; } else { log . warn ( "Was asked to remove OnReconnect listener " + listener + ", but remove operation did not find it in the list of registered listeners." ) ; } } }
removed a previously registered onreconnect listener , such as when a core is removed or reloaded .
