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.
|
void |
removeProxy(K key)
Removes persisted state of bucket from underlying storage.
|
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 extension supports asynchronous APIAsyncProxyManager<K> asAsync() throws UnsupportedOperationException
UnsupportedOperationException - in case of this proxy manager does not support Async API.Copyright © 2022. All rights reserved.