public void enterSlaveMode(){
  CoreCmd ccmd=getQueue.peek();
  while (ccmd != null) {
    ccmd=getQueue.remove();
    ccmd.update(Command.STATUS_SLAVE_MODE,cmember.leaderId);
    ccmd=getQueue.peek();
  }
}

public void enterSlaveMode ( ) { CoreCmd ccmd = getQueue . peek ( ) ; while ( ccmd != null ) { ccmd = getQueue . remove ( ) ; ccmd . update ( Command . STATUS_SLAVE_MODE , cmember . leaderId ) ; ccmd = getQueue . peek ( ) ; } }
throws an exception to any waiters for log entries .
