Package com.eventstore.dbclient
Class EventStoreDBClientBase
- java.lang.Object
-
- com.eventstore.dbclient.EventStoreDBClientBase
-
- Direct Known Subclasses:
EventStoreDBClient
public class EventStoreDBClientBase extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.util.Optional<ServerVersion>>
getServerVersion()
boolean
isShutdown()
Checks if this client instance has been shutdown.java.util.concurrent.CompletableFuture<java.lang.Void>
shutdown()
Closes a connection and cleans all its allocated resources.
-
-
-
Method Detail
-
shutdown
public java.util.concurrent.CompletableFuture<java.lang.Void> shutdown()
Closes a connection and cleans all its allocated resources.
-
isShutdown
public boolean isShutdown()
Checks if this client instance has been shutdown. After shutdown a client instance can no longer process new operations and a new client instance has to be created.- Returns:
true
if client instance has been shutdown.
-
getServerVersion
public java.util.concurrent.CompletableFuture<java.util.Optional<ServerVersion>> getServerVersion()
-
-