com.hazelcast.map.impl.mapstore
public final class MapDataStores extends Object
MapDataStore
Modifier and Type | Method and Description |
---|---|
static <K,V> MapDataStore<K,V> |
createWriteBehindStore(MapStoreContext mapStoreContext,
int partitionId,
WriteBehindProcessor writeBehindProcessor)
Creates a write behind data store.
|
static <K,V> MapDataStore<K,V> |
createWriteThroughStore(MapStoreContext mapStoreContext)
Creates a write through data store.
|
static <K,V> MapDataStore<K,V> |
emptyStore()
Used for providing neutral null behaviour.
|
public static <K,V> MapDataStore<K,V> createWriteBehindStore(MapStoreContext mapStoreContext, int partitionId, WriteBehindProcessor writeBehindProcessor)
K
- type of key to store.V
- type of value to store.mapStoreContext
- context for map store operations.partitionId
- partition id of partition.writeBehindProcessor
- the WriteBehindProcessor
public static <K,V> MapDataStore<K,V> createWriteThroughStore(MapStoreContext mapStoreContext)
K
- type of key to store.V
- type of value to store.mapStoreContext
- context for map store operations.public static <K,V> MapDataStore<K,V> emptyStore()
K
- type of key to store.V
- type of value to store.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.