K - the generic type for unique identifiers that used to point to the bucket in external storage.public abstract class AbstractSelectForUpdateBasedProxyManager<K> extends AbstractProxyManager<K>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSelectForUpdateBasedProxyManager(ClientSideConfig clientSideConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SelectForUpdateBasedTransaction |
allocateTransaction(K key,
Optional<Long> timeoutNanos) |
protected void |
applyTimeout(PreparedStatement statement,
Optional<Long> requestTimeoutNanos) |
<T> CommandResult<T> |
execute(K key,
Request<T> request) |
<T> CompletableFuture<CommandResult<T>> |
executeAsync(K key,
Request<T> request) |
boolean |
isAsyncModeSupported()
Describes whether or not this manager supports asynchronous API.
|
protected CompletableFuture<Void> |
removeAsync(Object key) |
asAsync, builder, getBackwardCompatibilityVersion, getClientSideConfig, getClientSideTime, getProxyConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisExpireAfterWriteSupported, removeProxy, withMapperprotected AbstractSelectForUpdateBasedProxyManager(ClientSideConfig clientSideConfig)
public <T> CommandResult<T> execute(K key, Request<T> request)
execute in class AbstractProxyManager<K>public boolean isAsyncModeSupported()
ProxyManagerfalse then any invocation of ProxyManager.asAsync() will throw UnsupportedOperationException.true if this manager supports asynchronous APIpublic <T> CompletableFuture<CommandResult<T>> executeAsync(K key, Request<T> request)
executeAsync in class AbstractProxyManager<K>protected CompletableFuture<Void> removeAsync(Object key)
removeAsync in class AbstractProxyManager<K>protected abstract SelectForUpdateBasedTransaction allocateTransaction(K key, Optional<Long> timeoutNanos)
protected void applyTimeout(PreparedStatement statement, Optional<Long> requestTimeoutNanos) throws SQLException
SQLExceptionCopyright © 2024. All rights reserved.