You can use waitForReady to shortcut RPCs.  It will fail them immediately 
if there is not a connection I believe.  You can set it on the CallOptions 
or the Stub. 

On Friday, December 16, 2016 at 9:56:35 AM UTC-8, Tim McManamey wrote:
>
> I'm implementing this in Java.
>
> On Friday, December 16, 2016 at 11:55:49 AM UTC-6, Tim McManamey wrote:
>>
>> I'm using a bi-directional connection with StreamObserver.  I want to be 
>> able to check the status of the connection periodically and respond 
>> appropriately.  I know that netty will cache the data until a reconnect, 
>> but I don't want to do that.  I want to be able to discard the data until 
>> the connection is re-established.  I've seen many mention using pings, but 
>> I don't know how that works.  Thanks for any help.
>>
>> Tim
>>
>

-- 
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/8f120c0b-782b-4e46-a752-e4840abdca89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to