All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hazelcast.map.mapstore.writethrough.WriteThroughManager Maven / Gradle / Ivy

package com.hazelcast.map.mapstore.writethrough;

import com.hazelcast.map.MapContainer;
import com.hazelcast.map.mapstore.MapDataStore;
import com.hazelcast.map.mapstore.MapDataStores;
import com.hazelcast.map.mapstore.MapStoreManager;

/**
 * Write through map store manager.
 */
public class WriteThroughManager implements MapStoreManager {

    private final MapDataStore mapDataStore;

    public WriteThroughManager(MapContainer mapContainer) {
        mapDataStore = MapDataStores.createWriteThroughStore(mapContainer);
    }

    @Override
    public void start() {

    }

    @Override
    public void stop() {

    }

    @Override
    public MapDataStore getMapDataStore(int partitionId) {
        return mapDataStore;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy