@Override public CompletableFuture<Void> closeAsync() { synchronized (lock) { resourceManager.shutDown(); return resourceManager.getTerminationFuture(); } }
@Override public CompletableFuture<Void> closeAsync() { synchronized (lock) { resourceManager.shutDown(); return resourceManager.getTerminationFuture(); } }
@Override public CompletableFuture<Void> closeAsync() { synchronized (lock) { resourceManager.shutDown(); return resourceManager.getTerminationFuture(); } }
terminationFutures.add(dispatcher.getTerminationFuture()); resourceManager.shutDown(); terminationFutures.add(resourceManager.getTerminationFuture());
terminationFutures.add(dispatcher.getTerminationFuture()); resourceManager.shutDown(); terminationFutures.add(resourceManager.getTerminationFuture());
private void shutDownInternally() throws Exception { Exception exception = null; synchronized (lock) { try { resourceManager.shutDown(); } catch (Exception e) { exception = ExceptionUtils.firstOrSuppressed(e, exception); } try { resourceManagerRuntimeServices.shutDown(); } catch (Exception e) { exception = ExceptionUtils.firstOrSuppressed(e, exception); } if (exception != null) { ExceptionUtils.rethrow(exception, "Error while shutting down the resource manager runner."); } } }
resourceManager.shutDown(); terminationFutures.add(resourceManager.getTerminationFuture());
resourceManager.shutDown(); terminationFutures.add(resourceManager.getTerminationFuture());
resourceManager.shutDown(); terminationFutures.add(resourceManager.getTerminationFuture());