public interface BucketManagerFactory extends AutoCloseable
BucketManager factory.
When the application has finished using the bucket manager factory, and/or at application shutdown,
the application should close the column family manager factory.| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes a resource
|
<T extends BucketManager> |
getBucketManager(String bucketName)
Creates a
BucketManager from a bucket name |
<T> List<T> |
getList(String bucketName,
Class<T> clazz)
Creates a
List from bucket name |
<K,V> Map<K,V> |
getMap(String bucketName,
Class<K> keyValue,
Class<V> valueValue)
Creates a
Map from bucket name |
<T> Queue<T> |
getQueue(String bucketName,
Class<T> clazz)
Creates a
Queue from bucket name |
<T> Set<T> |
getSet(String bucketName,
Class<T> clazz)
Creates a
Set from bucket name |
<T extends BucketManager> T getBucketManager(String bucketName)
BucketManager from a bucket namebucketName - a bucket nameBucketManager instanceUnsupportedOperationException - when the database does not have to itNullPointerException - when bucketName is null<T> List<T> getList(String bucketName, Class<T> clazz)
List from bucket nameT - the value typebucketName - a bucket nameclazz - the valeu classList instanceUnsupportedOperationException - when the database does not have to itNullPointerException - when either bucketName or class are null<T> Set<T> getSet(String bucketName, Class<T> clazz)
Set from bucket nameT - the value typebucketName - a bucket nameclazz - the valeu classSet instanceUnsupportedOperationException - when the database does not have to itNullPointerException - when either bucketName or class are null<T> Queue<T> getQueue(String bucketName, Class<T> clazz)
Queue from bucket nameT - the value typebucketName - a bucket nameclazz - the valeu classQueue instanceUnsupportedOperationException - when the database does not have to itNullPointerException - when either bucketName or class are null<K,V> Map<K,V> getMap(String bucketName, Class<K> keyValue, Class<V> valueValue)
Map from bucket nameK - the key typeV - the value typebucketName - the bucket namekeyValue - the key classvalueValue - the value classMap instanceUnsupportedOperationException - when the database does not have to itNullPointerException - when either bucketName or class are nullvoid close()
close in interface AutoCloseableCopyright © 2017–2019 Eclipse Foundation. All rights reserved.