Class GrpcChannels


  • public class GrpcChannels
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GrpcChannels()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static io.grpc.ManagedChannel newManagedChannel​(java.lang.String serverUrl, HttpParams httpParams)
      Create a new managed channel, this may be reused across multiple requests to a host, and must be closed when finished.
      static io.grpc.ManagedChannel newManagedChannel​(java.net.URI serverUrl, HttpParams httpParams)
      Create a new managed channel, this may be reused across multiple requests to a host, and must be closed when finished.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GrpcChannels

        public GrpcChannels()
    • Method Detail

      • newManagedChannel

        public static io.grpc.ManagedChannel newManagedChannel​(java.net.URI serverUrl,
                                                               HttpParams httpParams)
        Create a new managed channel, this may be reused across multiple requests to a host, and must be closed when finished.
        Parameters:
        serverUrl - the host to connect to
        httpParams - the http configuration
        Returns:
        a reusable grpc channel
      • newManagedChannel

        public static io.grpc.ManagedChannel newManagedChannel​(java.lang.String serverUrl,
                                                               HttpParams httpParams)
        Create a new managed channel, this may be reused across multiple requests to a host, and must be closed when finished.
        Parameters:
        serverUrl - the host to connect to
        httpParams - the http configuration
        Returns:
        a reusable grpc channel