K
- type of keypublic interface ProxyManager<K extends Serializable>
getProxy
method,
so it is not necessary to cache results of its invocation.Modifier and Type | Method and Description |
---|---|
Optional<Bucket> |
getProxy(K key)
Locates proxy to bucket which actually stored outside current JVM.
|
Bucket |
getProxy(K key,
Supplier<BucketConfiguration> configurationLazySupplier)
Provides light-weight proxy to bucket which actually stored outside current JVM.
|
Optional<BucketConfiguration> |
getProxyConfiguration(K key)
Locates configuration of bucket which actually stored outside current JVM.
|
Bucket getProxy(K key, Supplier<BucketConfiguration> configurationLazySupplier)
key
- the unique identifier used to point to the bucket in external storage.configurationLazySupplier
- supplier for configuration which can be called to build bucket configuration,
if and only if first invocation of any method on proxy detects that bucket absents in remote storage,
in this case provide configuration will be used to instantiate and persist the missed bucket.Optional<Bucket> getProxy(K key)
key
- the unique identifier used to point to the bucket in external storage.Optional<BucketConfiguration> getProxyConfiguration(K key)
key
- the unique identifier used to point to the bucket in external storage.Copyright © 2018. All rights reserved.