All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.swisspush.reststorage.util.FailedAsyncResult Maven / Gradle / Ivy

package org.swisspush.reststorage.util;

import io.vertx.core.AsyncResult;

public class FailedAsyncResult implements AsyncResult {
    private final Throwable cause;

    public FailedAsyncResult(Throwable cause) {
        this.cause = cause;
    }

    @Override
    public T result() {
        return null;
    }

    @Override
    public Throwable cause() {
        return cause;
    }

    @Override
    public boolean succeeded() {
        return false;
    }

    @Override
    public boolean failed() {
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy