Package com.eventstore.dbclient
Class EventStoreDBClusterConnection
- java.lang.Object
-
- com.eventstore.dbclient.EventStoreDBClusterConnection
-
- All Implemented Interfaces:
EventStoreDBConnection
public class EventStoreDBClusterConnection extends java.lang.Object implements EventStoreDBConnection
-
-
Constructor Summary
Constructors Constructor Description EventStoreDBClusterConnection(java.util.List<java.net.InetSocketAddress> seedNodes, java.lang.String domainName, NodePreference nodePreference, Timeouts timeouts, io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext)
-
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
-
EventStoreDBClusterConnection
public EventStoreDBClusterConnection(java.util.List<java.net.InetSocketAddress> seedNodes, java.lang.String domainName, NodePreference nodePreference, Timeouts timeouts, io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext)
-
-
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
-
-