while (!isStopping()) { Connection connection = null; PreparedStatement statement = null; if (isStopping()) { throw new Exception( "Cannot start broker as being asked to shut down. " TimeUnit.MILLISECONDS.sleep(lockAcquireSleepInterval); if (isStopping()) { throw new RuntimeException(getLeaseHolderId() + " failing lease acquire due to stop");
while (!isStopping()) { Connection connection = null; PreparedStatement statement = null; if (isStopping()) { throw new Exception( "Cannot start broker as being asked to shut down. " TimeUnit.MILLISECONDS.sleep(lockAcquireSleepInterval); if (isStopping()) { throw new RuntimeException(getLeaseHolderId() + " failing lease acquire due to stop");
while (!isStopping()) { Connection connection = null; PreparedStatement statement = null; if (isStopping()) { throw new Exception( "Cannot start broker as being asked to shut down. " TimeUnit.MILLISECONDS.sleep(lockAcquireSleepInterval); if (isStopping()) { throw new RuntimeException(getLeaseHolderId() + " failing lease acquire due to stop");
while (!isStopping()) { Connection connection = null; PreparedStatement statement = null; if (isStopping()) { throw new Exception( "Cannot start broker as being asked to shut down. " TimeUnit.MILLISECONDS.sleep(lockAcquireSleepInterval); if (isStopping()) { throw new RuntimeException(getLeaseHolderId() + " failing lease acquire due to stop");