Here's a document that describes the allowed state transitions
https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md
that should answer your questions.

gRPC tries to manage connections for you, so you can assume the channel
will become ready when you perform an RPC.



On Mon, Mar 5, 2018 at 11:28 AM <cr2...@gmail.com> wrote:

> I should have pointed out that when queried the state I was using
> .getState(true);
>
> Parameters:
> requestConnection - if true, the channel will try to make a connection if
> it is currently IDLE
>
> On Saturday, March 3, 2018 at 1:33:30 PM UTC-5, cr2...@gmail.com wrote:
>>
>> Hi -
>> As a client is there any means of knowing the state of the connection?
>> If I have several endpoints that could service a request is there anything
>> look at the ManagedChannel that would indicate to choose one over the other?
>>
> --
> 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 grpc-io+unsubscr...@googlegroups.com.
> To post to this group, send email to grpc-io@googlegroups.com.
> 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/479124a7-c8f3-4938-807e-ab795b48b3e8%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/479124a7-c8f3-4938-807e-ab795b48b3e8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Spencer Fang

-- 
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 grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
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/CAK%3D-x_7OErKqBvNgQ5iFqb9wimL%2BjcP9zhrpFJKM_5FPCh_oig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to