K - type of primary keypublic interface ProxyManager<K>
ProxyManager provides API for building and managing the collection of BucketProxy in backing storage.
Typically an instance of ProxyManager is organized around RDBMS table, GRID cache, or some similarly isolated part of external storage.
Primary keys are used to distinguish persisted state of different buckets.BucketProxy,
AsyncProxyManager| Modifier and Type | Method and Description |
|---|---|
AsyncProxyManager<K> |
asAsync()
Returns asynchronous API for this proxy manager.
|
RemoteBucketBuilder<K> |
builder() |
Optional<BucketConfiguration> |
getProxyConfiguration(K key)
Locates configuration of bucket which actually stored in the underlying storage.
|
boolean |
isAsyncModeSupported()
Describes whether or not this manager supports asynchronous API.
|
default boolean |
isExpireAfterWriteSupported()
Describes whether or not this manager supports expire-after-write feature.
|
void |
removeProxy(K key)
Removes persisted state of bucket from underlying storage.
|
default <K1> ProxyManager<K1> |
withMapper(Function<? super K1,? extends K> mapper)
Returns a proxy object that wraps this ProxyManager such that keys are first mapped using the specified mapping function
before being sent to the remote store.
|
RemoteBucketBuilder<K> builder()
Optional<BucketConfiguration> getProxyConfiguration(K key)
key - the unique identifier used to point to the bucket in external storage.void removeProxy(K key)
key - the primary key of bucket which state need to be removed from underlying storage.boolean isAsyncModeSupported()
false then any invocation of asAsync() will throw UnsupportedOperationException.true if this manager supports asynchronous APIdefault boolean isExpireAfterWriteSupported()
true if this manager supports expire-after-write feature.AsyncProxyManager<K> asAsync() throws UnsupportedOperationException
UnsupportedOperationException - in case of this proxy manager does not support Async API.default <K1> ProxyManager<K1> withMapper(Function<? super K1,? extends K> mapper)
K1 - the type of key accepted by returned ProxyManagermapper - the mapper function to apply to keysCopyright © 2024. All rights reserved.