Code example for ListenableFuture

Methods: get

0
        return delegate.get();
    } 
 
    @Override 
    public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
        return delegate.get(timeout, unit);
    } 
 
 
    private RuntimeException extractCauseFromExecutionException(ExecutionException e) {
        final Throwable cause = e.getCause();
        if (cause instanceof DriverException) {
            return ((DriverException) cause).copy();
        } else if (cause instanceof DriverInternalError) {
            return (DriverInternalError) cause;
        } else if (cause instanceof AchillesLightWeightTransactionException) {
            return (AchillesLightWeightTransactionException) cause;
        } else if (cause instanceof AchillesBeanValidationException) {
            return (AchillesBeanValidationException) cause;
        } else if (cause instanceof AchillesInvalidTableException) {
Experience pair programming with AI  Get Codota for Java