@ExperimentalApi(value="QueryService is experimental and API may change without notice") public interface QueryClient extends AutoCloseable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
QueryClient.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<Result<QuerySession>> |
createSession(Duration duration)
Return a future with
QuerySession for further work. |
ScheduledExecutorService |
getScheduler() |
static QueryClient.Builder |
newClient(GrpcTransport transport) |
static TableClient.Builder |
newTableClient(GrpcTransport transport) |
static QueryClient.Builder newClient(@WillNotClose GrpcTransport transport)
static TableClient.Builder newTableClient(@WillNotClose GrpcTransport transport)
CompletableFuture<Result<QuerySession>> createSession(Duration duration)
QuerySession for further work. The session will be taken from the session pool if
it has any idle session or will be created on the flyduration - timeout of operation completion waitingScheduledExecutorService getScheduler()
void close()
close in interface AutoCloseableCopyright © 2024. All rights reserved.