On Tue, Mar 6, 2018 at 3:59 PM, <cr2...@gmail.com> wrote: > The true vs false on getState was still a mystery. As you indicate it > never did anything for me. I think if it was working it would be > beneficial. What I'm trying to achieve was prioritize which endpoints are > most likely to succeed to try them first. Nothing I did took an IDLE to > RUNNING except an actual RPC but then that would be too late. >
As a note, your use-case may be better served by implementing a LoadBalancer. It would get to choose which endpoint to use, and has access to "subchannel.requestConnection()" (which should be working even though getState(true) is not). You can see PickFirstBalancerFactory for an example. Choosing to make your own LB mainly depends on how much application logic you need as part of your decision (although you can also plumb application data to the LB via CallOptions.withOption). -- 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 firstname.lastname@example.org. 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/CA%2B4M1oPjZ8C0aGqEEZj2j8F7052ahTmxy1o4gO%3D8rtUOF2Th9Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Description: S/MIME Cryptographic Signature