/** * Shuts down this leader election service. * * <p>This method does not perform a clean revocation of the leader status and * no notification to any leader listeners. It simply notifies all contenders * and listeners that the service is no longer available. */ public void shutdown() { synchronized (lock) { shutdownInternally(new Exception("Leader election service is shutting down")); } }
/** * Shuts down this leader election service. * * <p>This method does not perform a clean revocation of the leader status and * no notification to any leader listeners. It simply notifies all contenders * and listeners that the service is no longer available. */ public void shutdown() { synchronized (lock) { shutdownInternally(new Exception("Leader election service is shutting down")); } }
/** * Shuts down this leader election service. * * <p>This method does not perform a clean revocation of the leader status and * no notification to any leader listeners. It simply notifies all contenders * and listeners that the service is no longer available. */ public void shutdown() { synchronized (lock) { shutdownInternally(new Exception("Leader election service is shutting down")); } }
/** * Shuts down this leader election service. * * <p>This method does not perform a clean revocation of the leader status and * no notification to any leader listeners. It simply notifies all contenders * and listeners that the service is no longer available. */ public void shutdown() { synchronized (lock) { shutdownInternally(new Exception("Leader election service is shutting down")); } }
private void fatalError(Throwable error) { LOG.error("Embedded leader election service encountered a fatal error. Shutting down service.", error); synchronized (lock) { shutdownInternally(new Exception("Leader election service is shutting down after a fatal error", error)); } }
private void fatalError(Throwable error) { LOG.error("Embedded leader election service encountered a fatal error. Shutting down service.", error); synchronized (lock) { shutdownInternally(new Exception("Leader election service is shutting down after a fatal error", error)); } }
private void fatalError(Throwable error) { LOG.error("Embedded leader election service encountered a fatal error. Shutting down service.", error); synchronized (lock) { shutdownInternally(new Exception("Leader election service is shutting down after a fatal error", error)); } }
private void fatalError(Throwable error) { LOG.error("Embedded leader election service encountered a fatal error. Shutting down service.", error); synchronized (lock) { shutdownInternally(new Exception("Leader election service is shutting down after a fatal error", error)); } }