public class QueryClientImpl extends Object implements QueryClient
| Modifier and Type | Class and Description |
|---|---|
static class |
QueryClientImpl.Builder |
| Constructor and Description |
|---|
QueryClientImpl(QueryClientImpl.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<Result<QuerySession>> |
createSession(Duration timeout)
Return a future with
QuerySession for further work. |
ScheduledExecutorService |
getScheduler() |
SessionPoolStats |
getSessionPoolStats() |
static QueryClientImpl.Builder |
newClient(GrpcTransport transport) |
void |
updatePoolMaxSize(int maxSize) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewTableClientpublic QueryClientImpl(QueryClientImpl.Builder builder)
public CompletableFuture<Result<QuerySession>> createSession(Duration timeout)
QueryClientQuerySession for further work. The session will be taken from the session pool if
it has any idle session or will be created on the flycreateSession in interface QueryClienttimeout - timeout of operation completion waitingpublic ScheduledExecutorService getScheduler()
getScheduler in interface QueryClientpublic void updatePoolMaxSize(int maxSize)
public SessionPoolStats getSessionPoolStats()
public void close()
close in interface AutoCloseableclose in interface QueryClientpublic static QueryClientImpl.Builder newClient(GrpcTransport transport)
newClient in interface QueryClientCopyright © 2024. All rights reserved.