Package com.hazelcast.core

Examples of com.hazelcast.core.MapStore


    public MapStoreWrapper(Object impl, String mapName, boolean enabled) {
        this.impl = impl;
        this.mapName = mapName;
        MapLoader loader = null;
        MapStore store = null;
        if (impl instanceof MapStore) {
            store = (MapStore) impl;
        }
        if (impl instanceof MapLoader) {
            loader = (MapLoader) impl;
View Full Code Here


        evictAllInternal();
    }

    @Override
    public void loadAll(boolean replaceExistingValues) {
        final MapStore store = getMapStore();
        if (store == null) {
            throw new NullPointerException("First you should configure a map store");
        }

        final Set keys = store.loadAllKeys();
        if (keys == null || keys.isEmpty()) {
            return;
        }
        loadAll(keys, replaceExistingValues);
    }
View Full Code Here

    public MapStoreWrapper(Object impl, String mapName, boolean enabled) {
        this.impl = impl;
        this.mapName = mapName;
        MapLoader loader = null;
        MapStore store = null;
        if (impl instanceof MapStore) {
            store = (MapStore) impl;
        }
        if (impl instanceof MapLoader) {
            loader = (MapLoader) impl;
View Full Code Here

    public MapStoreWrapper(Object impl, String mapName, boolean enabled) {
        this.impl = impl;
        this.mapName = mapName;
        MapLoader loader = null;
        MapStore store = null;
        if (impl instanceof MapStore) {
            store = (MapStore) impl;
        }
        if (impl instanceof MapLoader) {
            loader = (MapLoader) impl;
View Full Code Here

    @Test
    public void updates_on_same_key_when_in_memory_format_is_object() throws Exception {
        final long customerId = 0L;
        final int numberOfSubscriptions = 1000;
        final MapStore mapStore = new DataStore();
        final IMap<Long, Customer> map = createMap(mapStore);

        addCustomer(map, customerId);

        // add subscriptions.
View Full Code Here

        evictAllInternal();
    }

    @Override
    public void loadAll(boolean replaceExistingValues) {
        final MapStore store = getMapStore();
        if (store == null) {
            throw new NullPointerException("First you should configure a map store");
        }

        final Set keys = store.loadAllKeys();
        if (keys == null || keys.isEmpty()) {
            return;
        }
        loadAll(keys, replaceExistingValues);
    }
View Full Code Here

    @Test(timeout = 120000)
    public void testIssue1115EnablingMapstoreMutatingValue() throws InterruptedException {
        Config cfg = new Config();
        String mapName = "testIssue1115";
        MapStore mapStore = new ProcessingStore();
        MapStoreConfig mapStoreConfig = new MapStoreConfig();
        mapStoreConfig.setEnabled(true);
        mapStoreConfig.setImplementation(mapStore);
        cfg.getMapConfig(mapName).setMapStoreConfig(mapStoreConfig);
        TestHazelcastInstanceFactory nodeFactory = createHazelcastInstanceFactory(2);
View Full Code Here

TOP

Related Classes of com.hazelcast.core.MapStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.