class RoutingResults {

    final List<String> successedRoutings;
    final List<String> failedRoutings;
    private final CompletableFuture<Void> mergedAction;

    public RoutingResults(List<String> successedRoutings, List<String> failedRoutings, CompletableFuture<Void> mergedAction) {
        this.successedRoutings = successedRoutings;
        this.failedRoutings = failedRoutings;
        this.mergedAction = mergedAction;
    }

    public boolean isAllSuccess() {
        return failedRoutings.isEmpty();
    }

    public boolean isAllFailed() {
        return successedRoutings.isEmpty() && !failedRoutings.isEmpty();
    }

    public CompletableFuture<Void> completableFuture() {
        return mergedAction;
    }

    public static RoutingResults preroutingError() {<FILL_FUNCTION_BODY>}

    @Override
    public String toString() {
        return "RoutingResults{" + "successedRoutings=" + successedRoutings + ", failedRoutings=" + failedRoutings + ", mergedAction=" + mergedAction + '}';
    }

}

        // WARN this is a special case failed is empty, but this result is to be considered as error.
        return new RoutingResults(Collections.emptyList(), Collections.emptyList(), CompletableFuture.completedFuture(null));
    
<no_super_class>