public void waitForPaxosToFinish(){
  proposeLock.lock();
  canPropose.awaitUninterruptibly();
  proposeLock.unlock();
}

public void waitForPaxosToFinish ( ) { proposeLock . lock ( ) ; canPropose . awaitUninterruptibly ( ) ; proposeLock . unlock ( ) ; }
this method blocks until the paw algorithm is finished
