Package com.hazelcast.config

Examples of com.hazelcast.config.ListConfig


    }

    protected IList newListWithMaxSizeCfg(int maxSize) {
        String name = randomString();
        Config config = new Config();
        ListConfig listConfig = config.getListConfig(name);
        listConfig.setMaxSize(maxSize);
        HazelcastInstance instance = createHazelcastInstance(config);
        return instance.getList(name);
    }
View Full Code Here


    @Test
    public void testMigration() {
        Config config = new Config();
        final String name = randomString();
        config.addListConfig(new ListConfig().setName(name).setBackupCount(1));
        final int insCount = 4;
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(insCount);
        HazelcastInstance instance1 = factory.newHazelcastInstance(config);
        IList list = instance1.getList(name);
View Full Code Here

    @Test
    public void testMaxSize() {
        Config config = new Config();
        final String name = "defList";
        config.addListConfig(new ListConfig().setName(name).setBackupCount(1).setMaxSize(100));

        final int insCount = 2;
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(insCount);

        HazelcastInstance instance1 = factory.newHazelcastInstance(config);
View Full Code Here

TOP

Related Classes of com.hazelcast.config.ListConfig

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.