Here:

response = blockingStub.withDeadlineAfter(deadlineMs, 
TimeUnit.MILLISECONDS).sayHello(request);

from

https://grpc.io/blog/deadlines

> On Nov 1, 2018, at 10:22 AM, Vijay Lakshminarayanan <[email protected]> 
> wrote:
> 
> Thanks Robert.  I forgot to mention that I'm using Java.  I'll look
> for the equivalent APIs in Java.
> 
> Thanks
> Vijay
> 
> On Thu, Nov 1, 2018 at 8:50 PM robert engels <[email protected]> wrote:
>> 
>> In Go, you can set the Context with Deadline, and the server side handler 
>> can check if the request should be aborted (which may happen automatically 
>> if the Context is passed to another service, like db connection).
>> 
>>> On Nov 1, 2018, at 10:08 AM, Vijay Lakshminarayanan <[email protected]> 
>>> wrote:
>>> 
>>> Hi
>>> 
>>> I'd like to cap the longevity of any client request on the server's
>>> side.  Is this possible?
>>> 
>>> Thanks
>>> Vijay
>>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "grpc.io" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/grpc-io.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/grpc-io/CALRoXF0syS4nR7X9kyqCPkrPajDb%2B1rpL09jukUQkPkPvBR_PA%40mail.gmail.com.
>>> For more options, visit https://groups.google.com/d/optout.
>> 

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/C5E3B9EB-D091-47A0-A3D2-8F50715CD559%40earthlink.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to