@Test public void shutdownWithoutAcquireIsNoOp() { manager.shutdown(); verifyZeroInteractions(mockPls); }
public synchronized void shutdown() { log.info("Shutting down..."); try { isShutDown = true; while (lockId != null) { releasePersistentLock(); } log.info("Shutdown completed!"); } catch (Exception e) { logFailedShutdown(e); } }
PersistentLockManager implements AutoCloseable { public synchronized void shutdown() { log.info("Shutting down..."); try { isShutDown = true; while (lockId != null) { releasePersistentLock(); } log.info("Shutdown completed!"); } catch (Exception e) { logFailedShutdown(e); } } }
PersistentLockManager implements AutoCloseable { public synchronized void shutdown() { log.info("Shutting down..."); try { isShutDown = true; while (lockId != null) { releasePersistentLock(); } log.info("Shutdown completed!"); } catch (Exception e) { logFailedShutdown(e); } } PersistentLockManager(MetricsManager metricsManager,
            PersistentLockService persistentLockService, long persistentLockRetryWaitMillis); }
PersistentLockManager implements AutoCloseable { public synchronized void shutdown() { log.info("Shutting down..."); try { isShutDown = true; while (lockId != null) { releasePersistentLock(); } log.info("Shutdown completed!"); } catch (Exception e) { logFailedShutdown(e); } } PersistentLockManager(MetricsManager metricsManager,
            PersistentLockService persistentLockService, long persistentLockRetryWaitMillis); @Override void close(); synchronized void shutdown(); void acquirePersistentLockWithRetry(); synchronized void releasePersistentLock(); }
PersistentLockManager implements AutoCloseable { public synchronized void shutdown() { log.info("Shutting down..."); try { isShutDown = true; while (lockId != null) { releasePersistentLock(); } log.info("Shutdown completed!"); } catch (Exception e) { logFailedShutdown(e); } } PersistentLockManager(MetricsManager metricsManager,
            PersistentLockService persistentLockService, long persistentLockRetryWaitMillis); @Override void close(); synchronized void shutdown(); void acquirePersistentLockWithRetry(); synchronized void releasePersistentLock();  }