public class PooledTableClient extends Object implements TableClient
| Modifier and Type | Class and Description |
|---|---|
static class |
PooledTableClient.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<Result<Session>> |
createSession(Duration timeout)
Create new session asynchronous
|
ScheduledExecutorService |
getScheduler()
Default scheduler for asynchronous tasks execution
|
static PooledTableClient.Builder |
newClient(TableRpc rpc) |
SessionPoolStats |
sessionPoolStats() |
void |
updatePoolMaxSize(int maxSize) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewClientpublic CompletableFuture<Result<Session>> createSession(Duration timeout)
SessionSuppliercreateSession in interface SessionSuppliertimeout - - timeout of operation completion waitingpublic ScheduledExecutorService getScheduler()
SessionSuppliergetScheduler in interface SessionSupplierpublic void close()
close in interface AutoCloseableclose in interface TableClientpublic void updatePoolMaxSize(int maxSize)
public SessionPoolStats sessionPoolStats()
sessionPoolStats in interface TableClientpublic static PooledTableClient.Builder newClient(TableRpc rpc)
Copyright © 2023. All rights reserved.