You can access it via the Context:

Deadline deadline = Context.current().getDeadline();

Keep in mind, Context is thread local, so if you dispatch to another thread 
you'll need to ensure that state is transferred or just extract the 
Deadline and pass that around.

-MR

On Thursday, September 22, 2016 at 9:17:20 AM UTC-6, Mathias Chouilly wrote:
>
> In java
>
> On Thu, Sep 22, 2016 at 4:46 PM, Nathaniel Manista <[email protected] 
> <javascript:>> wrote:
>
>> On Thu, Sep 22, 2016 at 7:39 AM, <[email protected] <javascript:>> wrote:
>>
>>> I'm having the same trouble finding documentation and/or examples for 
>>> how a server can get the timeout deadline from a client call. 
>>> Is it possible ?
>>>
>>
>> In what language are you writing your service-side code?
>> -Nathaniel
>>
>
>

-- 
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/fb327cf1-2b0f-4ad2-90ca-ee29ae335b2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to