public interface Hz3MapAdapter
Modifier and Type | Method and Description |
---|---|
BooleanSupplier |
createWatcher()
Returns a
BooleanSupplier that will tell if a migration took
place since the call to this method. |
<K,V> AsyncMap<K,V> |
getMap(String mapName)
Returns map with given name.
|
int |
getPartitionCount()
Return number of partitions for the cluster
|
<V,K> Map<K,V> |
getReplicatedMap(String mapName)
Returns replicated map with given name
|
<F extends CompletableFuture,B,R> |
reader(String mapName,
Function<Map.Entry<byte[],byte[]>,Object> toObject)
Return reader for a map with given name
|
void |
shutdown()
Shutdown the client and any related resources
|
Object |
toHz3Data(byte[] bytes)
Wrap payload as Data using Hazelcast 3 version of HeapData
|
int getPartitionCount()
<F extends CompletableFuture,B,R> Reader<F,B,R> reader(String mapName, Function<Map.Entry<byte[],byte[]>,Object> toObject)
BooleanSupplier createWatcher()
BooleanSupplier
that will tell if a migration took
place since the call to this method.void shutdown()
<K,V> AsyncMap<K,V> getMap(String mapName)
The returned type is AsyncMap
because of the incompatible interfaces between Hazelcast 3 and 4.
<V,K> Map<K,V> getReplicatedMap(String mapName)
Object toHz3Data(byte[] bytes)
Copyright © 2024 Hazelcast, Inc.. All rights reserved.