public abstract class AbstractLockBasedBackend<K> extends AbstractBackend<K>
Modifier | Constructor and Description |
---|---|
protected |
AbstractLockBasedBackend(ClientSideConfig clientSideConfig) |
Modifier and Type | Method and Description |
---|---|
protected abstract LockBasedTransaction |
allocateTransaction(K key) |
<T> CommandResult<T> |
execute(K key,
Request<T> request) |
<T> CompletableFuture<CommandResult<T>> |
executeAsync(K key,
Request<T> request) |
boolean |
isAsyncModeSupported()
TODO
Describes whether or not this backend supports asynchronous mode.
|
protected abstract void |
releaseTransaction(LockBasedTransaction transaction) |
asAsync, builder, getBackwardCompatibilityVersion, getClientSideConfig, getClientSideTime, getProxyConfiguration
protected AbstractLockBasedBackend(ClientSideConfig clientSideConfig)
public <T> CommandResult<T> execute(K key, Request<T> request)
execute
in class AbstractBackend<K>
public boolean isAsyncModeSupported()
Backend
public <T> CompletableFuture<CommandResult<T>> executeAsync(K key, Request<T> request)
executeAsync
in class AbstractBackend<K>
protected abstract LockBasedTransaction allocateTransaction(K key)
protected abstract void releaseTransaction(LockBasedTransaction transaction)
Copyright © 2020. All rights reserved.