Package com.eventstore.dbclient
Class SingleNodeEventStoreDBConnection
- java.lang.Object
-
- com.eventstore.dbclient.SingleNodeEventStoreDBConnection
-
- All Implemented Interfaces:
EventStoreDBConnection
public class SingleNodeEventStoreDBConnection extends java.lang.Object implements EventStoreDBConnection
-
-
Constructor Summary
Constructors Constructor Description SingleNodeEventStoreDBConnection(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
-
SingleNodeEventStoreDBConnection
public SingleNodeEventStoreDBConnection(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 interfaceEventStoreDBConnection
-
shutdown
public void shutdown() throws java.lang.InterruptedException- Specified by:
shutdownin interfaceEventStoreDBConnection- Throws:
java.lang.InterruptedException
-
-