src/main/java/com/github/nirvanarsc/k8s/monitoring/sample/service/GreetingService.java
/**
     * Sends a {@link GreetingReply} 3 seconds after receiving a request.
     */
Sends a  GreetingReply 3 seconds after receiving a request.
Sends a GreetingReply 3 seconds after receiving a request .
@Override
    public void lazyHello(GreetingRequest request, StreamObserver<GreetingReply> responseObserver) {
        ServiceRequestContext.current().contextAwareEventLoop().schedule(() -> {
            responseObserver.onNext(buildReply(request.getName()));
            responseObserver.onCompleted();
        }, 3, TimeUnit.SECONDS);
    }
@ Override public void lazyHello ( GreetingRequest request , StreamObserver < GreetingReply > responseObserver ) { ServiceRequestContext . current ( ) . contextAwareEventLoop ( ) . schedule ( ( ) -> { responseObserver . onNext ( buildReply ( request . getName ( ) ) ) ; responseObserver . onCompleted ( ) ; } , 3 , TimeUnit . SECONDS ) ; }
Sends a {@link GreetingReply} 3 seconds after receiving a request.
Sends a { @link GreetingReply } 3 seconds after receiving a request .