public String waitForConfigChange() throws InterruptedException {
  logger.message("Entering ConfigChangeListener.waitForConfigChange()");
  String msg=null;
  try {
    msg=configChangedQueue.take();
  }
 catch (  final InterruptedException e) {
    logger.warning("Thread waiting for config change has been interrupted.");
    throw e;
  }
  logger.message("Exiting ConfigChangeListener.waitForConfigChange, returning " + msg);
  return msg;
}

public String waitForConfigChange ( ) throws InterruptedException { logger . message ( "Entering ConfigChangeListener.waitForConfigChange()" ) ; String msg = null ; try { msg = configChangedQueue . take ( ) ; } catch ( final InterruptedException e ) { logger . warning ( "Thread waiting for config change has been interrupted." ) ; throw e ; } logger . message ( "Exiting ConfigChangeListener.waitForConfigChange, returning " + msg ) ; return msg ; }
blocking call . will return when a config change notification arrives or if one is queued .
