Package com.youtube.vitess.vtgate.rpcclient

Examples of com.youtube.vitess.vtgate.rpcclient.RpcClient


   * @throws ConnectionException
   */
  public static VtGate connect(String addresses, int timeoutMs) throws ConnectionException {
    List<String> addressList = Arrays.asList(addresses.split(","));
    int index = new Random().nextInt(addressList.size());
    RpcClient client = RpcClientFactory.get(addressList.get(index), timeoutMs);
    return new VtGate(client);
  }
View Full Code Here

TOP

Related Classes of com.youtube.vitess.vtgate.rpcclient.RpcClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.