Class SingleNodeClient

  • All Implemented Interfaces:
    GrpcClient

    public class SingleNodeClient
    extends java.lang.Object
    implements GrpcClient
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleNodeClient​(java.lang.String host, int port, Timeouts timeouts, io.grpc.netty.shaded.io.netty.handler.ssl.SslContext context)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <A> java.util.concurrent.CompletableFuture<A> run​(java.util.function.Function<io.grpc.ManagedChannel,​java.util.concurrent.CompletableFuture<A>> action)  
      void shutdown()  
      • Methods inherited from class java.lang.Object

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

      • SingleNodeClient

        public SingleNodeClient​(java.lang.String host,
                                int port,
                                Timeouts timeouts,
                                io.grpc.netty.shaded.io.netty.handler.ssl.SslContext context)
    • Method Detail

      • run

        public <A> java.util.concurrent.CompletableFuture<A> run​(java.util.function.Function<io.grpc.ManagedChannel,​java.util.concurrent.CompletableFuture<A>> action)
        Specified by:
        run in interface GrpcClient
      • shutdown

        public void shutdown()
                      throws java.lang.InterruptedException
        Specified by:
        shutdown in interface GrpcClient
        Throws:
        java.lang.InterruptedException