@Override
    public void dispatch(HttpRequest request, CompletableFuture<HttpResponse> vessel) {
        long millis = DELAY.toMillis();
        log.log(Level.FINE, "Dryrun of request '{0}' with delay of {1}ms", new Object[]{request, millis});
        if (millis > 0) {
            try {
                Thread.sleep(millis);
            } catch (InterruptedException e) {
                vessel.cancel(true);
                Thread.currentThread().interrupt();
                return;
            }
        }
        vessel.complete(new SimpleOkResponse());
    }
Dryrun implementation that reports every request/operation as successful

@author bjorncs
vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/DryrunCluster.java