Interface HazelcastBucketManagerFactory
- All Superinterfaces:
AutoCloseable,org.eclipse.jnosql.communication.keyvalue.BucketManagerFactory,Function<String,org.eclipse.jnosql.communication.keyvalue.BucketManager>
public interface HazelcastBucketManagerFactory
extends org.eclipse.jnosql.communication.keyvalue.BucketManagerFactory
The hazelcast implementation of
BucketManagerFactory-
Method Summary
Methods inherited from interface org.eclipse.jnosql.communication.keyvalue.BucketManagerFactory
close, getList, getMap, getQueue, getSet
-
Method Details
-
apply
Return theHazelcastBucketManagerinstance- Specified by:
applyin interfaceFunction<String,org.eclipse.jnosql.communication.keyvalue.BucketManager> - Parameters:
bucket- the function argument- Returns:
- the
HazelcastBucketManagerinstance - Throws:
NullPointerException- when the bucket is null
-
getList
Creates aListfrom bucket name- Type Parameters:
T- the value type- Parameters:
bucketName- a bucket name- Returns:
- a
Listinstance - Throws:
UnsupportedOperationException- when the database does not have to itNullPointerException- when the bucke name is null
-
getSet
Creates aSetfrom bucket name- Type Parameters:
T- the value type- Parameters:
bucketName- a bucket name- Returns:
- a
Setinstance - Throws:
UnsupportedOperationException- when the database does not have to itNullPointerException- when the bucket name is null
-
getQueue
Creates aQueuefrom bucket name- Type Parameters:
T- the value type- Parameters:
bucketName- a bucket name- Returns:
- a
Queueinstance - Throws:
UnsupportedOperationException- when the database does not have to itNullPointerException- when the bucket name is null
-
getMap
<K,V> Map<K,V> getMap(String bucketName) throws UnsupportedOperationException, NullPointerException Creates aMapfrom bucket name- Type Parameters:
K- the key typeV- the value type- Parameters:
bucketName- the bucket name- Returns:
- a
Mapinstance - Throws:
UnsupportedOperationException- when the database does not have to itNullPointerException- when the bucket name is null
-