Package com.hazelcast.core

Examples of com.hazelcast.core.IAtomicLong.decrementAndGet()


    @Test
    @ClientCompatibleTest
    public void testDecrementAndGet(){
        HazelcastInstance hzInstance = createHazelcastInstance();
        IAtomicLong atomicNumber = hzInstance.getAtomicLong(randomString());
        assertEquals(-1,atomicNumber.decrementAndGet());
        assertEquals(-2,atomicNumber.decrementAndGet());
    }

    @Test
    @ClientCompatibleTest
View Full Code Here


    @ClientCompatibleTest
    public void testDecrementAndGet(){
        HazelcastInstance hzInstance = createHazelcastInstance();
        IAtomicLong atomicNumber = hzInstance.getAtomicLong(randomString());
        assertEquals(-1,atomicNumber.decrementAndGet());
        assertEquals(-2,atomicNumber.decrementAndGet());
    }

    @Test
    @ClientCompatibleTest
    public void testIncrementAndGet(){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.