com.hazelcast.map.impl.mapstore
Class MapDataStores

java.lang.Object
  extended by com.hazelcast.map.impl.mapstore.MapDataStores

public final class MapDataStores
extends Object

Factory class responsible for creating various data store implementations.

See Also:
MapDataStore

Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createWriteBehindStore

public static <K,V> MapDataStore<K,V> createWriteBehindStore(MapStoreContext mapStoreContext,
                                                             int partitionId,
                                                             WriteBehindProcessor writeBehindProcessor)
Creates a write behind data store.

Type Parameters:
K - type of key to store.
V - type of value to store.
Parameters:
mapStoreContext - context for map store operations.
partitionId - partition id of partition.
writeBehindProcessor - the WriteBehindProcessor
Returns:
new write behind store manager.

createWriteThroughStore

public static <K,V> MapDataStore<K,V> createWriteThroughStore(MapStoreContext mapStoreContext)
Creates a write through data store.

Type Parameters:
K - type of key to store.
V - type of value to store.
Parameters:
mapStoreContext - context for map store operations.
Returns:
new write through store manager.

emptyStore

public static <K,V> MapDataStore<K,V> emptyStore()
Used for providing neutral null behaviour.

Type Parameters:
K - type of key to store.
V - type of value to store.
Returns:
empty store manager.


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.