Class GrpcTransportClient

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class GrpcTransportClient
    extends InternalTransportClient
    • Constructor Detail

      • GrpcTransportClient

        public GrpcTransportClient​(GrpcClientConfig grpcClientConfig)
    • Method Detail

      • getChannel

        protected io.grpc.ManagedChannel getChannel​(java.lang.String serverAddress)
      • get

        public java.util.concurrent.CompletableFuture<TransportClientResponse> get​(java.lang.String requestPath,
                                                                                   java.util.Map<java.lang.String,​java.lang.String> headers)
        Specified by:
        get in class TransportClient
      • post

        public java.util.concurrent.CompletableFuture<TransportClientResponse> post​(java.lang.String requestPath,
                                                                                    java.util.Map<java.lang.String,​java.lang.String> headers,
                                                                                    byte[] requestBody)
        Specified by:
        post in class TransportClient
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • handleRequest

        public java.util.concurrent.CompletableFuture<TransportClientResponse> handleRequest​(java.lang.String requestPath,
                                                                                             java.util.Map<java.lang.String,​java.lang.String> headers,
                                                                                             byte[] requestBody,
                                                                                             boolean isSingleGet)