/** * Ping the endpoint, synchronously. * * @return True, if the endpoint was reachable, false otherwise. */ public boolean pingSync() { try { return ping().get(); } catch (Exception e) { log.error("Ping failed due to exception", e); return false; } }
CompletableFuture<Boolean> cf = runtimeLayout.getBaseClient(serverEndpoint).ping(); pingFutureMap.put(serverEndpoint, cf);
.getRuntimeLayout() .getBaseClient(singleNodeEndpoint) .ping() .get()) .hasRootCauseInstanceOf(TimeoutException.class);