java - getting connection state for GRPC -


i trying connection state grpc (java api) connection via call copied below. based on notes find online, seemed if grpc client lazily connect server on first service call & if wanted establish connection before service call, use option. however, call seems prevent application connecting server , wondering if had rely on different call/mechanism.

grpc version: 1.1.2
jdk version:1.8

final managedchannelbuilder<?> channelbuilder = connection.getsecure();  //this forms secure connection channel = channelbuilder.build(); connectivitystate connectivitystate = channel.getstate(true); //referenced in question above asyncstub = monetagoconnectgrpc.newstub(channel); 

it isn't implemented managedchannels. api introduced new loadbalancer api, not loadbalancer using it.

i've filed an issue improve documentation until implemented.

your understanding of channel's behavior correct. lazily connects , api can force-connect channel. unfortunately, isn't yet implemented , there's not alternative other issuing rpc.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -