public DocumentOperationParameters withDeadline(Instant deadline) {
        return new DocumentOperationParameters(priority, fieldSet, route, traceLevel, requireNonNull(deadline), responseHandler);
    }
Sets the deadline for an operation.
documentapi/src/main/java/com/yahoo/documentapi/DocumentOperationParameters.java