@Override
    public <ReqT, RespT> ClientCall<ReqT, RespT> interceptCall(
            final MethodDescriptor<ReqT, RespT> method,
            final CallOptions callOptions,
            final Channel next) {

        if (callOptions.getDeadline() == null) {
            return next.newCall(method,
                    callOptions.withDeadlineAfter(defaultRequestTimeout.toMillis(), TimeUnit.MILLISECONDS));
        } else {
            return next.newCall(method, callOptions);
        }
    }
A client interceptor configuring the default request timeout / deadline for each call.

@author Sergei Batsura (batsura.sa@gmail.com)
grpc-client-spring-boot-starter/src/main/java/net/devh/boot/grpc/client/interceptor/DefaultRequestTimeoutSetupClientInterceptor.java