public abstract class AbstractBackend<K> extends Object implements Backend<K>
Modifier | Constructor and Description |
---|---|
protected |
AbstractBackend(ClientSideConfig clientSideConfig) |
Modifier and Type | Method and Description |
---|---|
AsyncBackend<K> |
asAsync()
TODO
|
RemoteBucketBuilder<K> |
builder()
TODO fix javadocs
Constructs an instance of
DefaultBucketProxy which state actually stored inside in-memory data-jvm,
the bucket stored in the jvm immediately, so one network request will be issued to jvm. |
protected abstract <T> CommandResult<T> |
execute(K key,
Request<T> request) |
protected abstract <T> CompletableFuture<CommandResult<T>> |
executeAsync(K key,
Request<T> request) |
protected Version |
getBackwardCompatibilityVersion() |
protected ClientSideConfig |
getClientSideConfig() |
protected Long |
getClientSideTime() |
Optional<BucketConfiguration> |
getProxyConfiguration(K key)
Locates configuration of bucket which actually stored outside current JVM.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAsyncModeSupported
protected AbstractBackend(ClientSideConfig clientSideConfig)
public AsyncBackend<K> asAsync()
Backend
public RemoteBucketBuilder<K> builder()
Backend
DefaultBucketProxy
which state actually stored inside in-memory data-jvm,
the bucket stored in the jvm immediately, so one network request will be issued to jvm.
Due to this method performs network IO, returned result must not be treated as light-weight entity,
it will be a performance anti-pattern to use this method multiple times for same key,
you need to cache result somewhere and reuse between invocations,
else performance of all operation with bucket will be 2-x times slower.public Optional<BucketConfiguration> getProxyConfiguration(K key)
Backend
getProxyConfiguration
in interface Backend<K>
key
- the unique identifier used to point to the bucket in external storage.protected abstract <T> CommandResult<T> execute(K key, Request<T> request)
protected abstract <T> CompletableFuture<CommandResult<T>> executeAsync(K key, Request<T> request)
protected ClientSideConfig getClientSideConfig()
protected Version getBackwardCompatibilityVersion()
protected Long getClientSideTime()
Copyright © 2020. All rights reserved.