@PreDestroy @Override public Observable<Void> shutdown() { moveHealthTo(Status.DOWN); logger.info("Shutting down the preservable registry"); evictionSubscription.unsubscribe(); evictionQueue.shutdown(); return eurekaRegistry.shutdown(); }
@Override public Observable<Void> shutdown(Throwable cause) { moveHealthTo(Status.DOWN); evictionSubscription.unsubscribe(); evictionQueue.shutdown(); return eurekaRegistry.shutdown(cause); }
@Override public void shutdown() { if (isShutdown.compareAndSet(false, true)) { logger.info("Shutting down InterestClient"); if (getRetryableConnection() != null) { getRetryableConnection().close(); } registry.shutdown(); } }