Package com.eventstore.dbclient
Class SingleNodeClient
- java.lang.Object
-
- com.eventstore.dbclient.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)voidshutdown()
-
-
-
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:
runin interfaceGrpcClient
-
shutdown
public void shutdown() throws java.lang.InterruptedException- Specified by:
shutdownin interfaceGrpcClient- Throws:
java.lang.InterruptedException
-
-