@Override public CompletableFuture<Void> shutdown() { return kvStateClient.shutdown(); } }
/** * Shuts down the client and returns a {@link CompletableFuture} that * will be completed when the shutdown process is completed. * * <p>If an exception is thrown for any reason, then the returned future * will be completed exceptionally with that exception. * * @return A {@link CompletableFuture} for further handling of the * shutdown result. */ public CompletableFuture<?> shutdownAndHandle() { return client.shutdown(); }
/** * Shuts down the client and waits until shutdown is completed. * * <p>If an exception is thrown, a warning is logged containing * the exception message. */ public void shutdownAndWait() { try { client.shutdown().get(); LOG.info("The Queryable State Client was shutdown successfully."); } catch (Exception e) { LOG.warn("The Queryable State Client shutdown failed: ", e); } }
client.shutdown().get(10L, TimeUnit.SECONDS); } catch (Exception e) { e.printStackTrace();
if (client != null) { try { client.shutdown().get(10L, TimeUnit.SECONDS); } catch (Exception e) { e.printStackTrace();
if (client != null) { try { client.shutdown().get(10L, TimeUnit.SECONDS); } catch (Exception e) { e.printStackTrace();
if (client != null) { try { client.shutdown().get(10L, TimeUnit.SECONDS); } catch (Exception e) { e.printStackTrace();
client.shutdown().get(10L, TimeUnit.SECONDS); } catch (Exception e) { exc = e;
/** * Shuts down the client and returns a {@link CompletableFuture} that * will be completed when the shutdown process is completed. * * <p>If an exception is thrown for any reason, then the returned future * will be completed exceptionally with that exception. * * @return A {@link CompletableFuture} for further handling of the * shutdown result. */ public CompletableFuture<?> shutdownAndHandle() { return client.shutdown(); }
/** * Shuts down the client and returns a {@link CompletableFuture} that * will be completed when the shutdown process is completed. * * <p>If an exception is thrown for any reason, then the returned future * will be completed exceptionally with that exception. * * @return A {@link CompletableFuture} for further handling of the * shutdown result. */ public CompletableFuture<?> shutdownAndHandle() { return client.shutdown(); }
/** * Shuts down the client and waits until shutdown is completed. * * <p>If an exception is thrown, a warning is logged containing * the exception message. */ public void shutdownAndWait() { try { client.shutdown().get(); LOG.info("The Queryable State Client was shutdown successfully."); } catch (Exception e) { LOG.warn("The Queryable State Client shutdown failed: ", e); } }
/** * Shuts down the client and waits until shutdown is completed. * * <p>If an exception is thrown, a warning is logged containing * the exception message. */ public void shutdownAndWait() { try { client.shutdown().get(); LOG.info("The Queryable State Client was shutdown successfully."); } catch (Exception e) { LOG.warn("The Queryable State Client shutdown failed: ", e); } }