Search in sources :

Example 11 with PNCounter

use of com.hazelcast.crdt.pncounter.PNCounter in project hazelcast by hazelcast.

the class PNCounterNoDataMemberTest method getCounter.

@Override
protected PNCounter getCounter() {
    final PNCounter counter = liteMember.getPNCounter(counterName);
    ((PNCounterProxy) counter).setOperationTryCount(1);
    return counter;
}
Also used : PNCounter(com.hazelcast.crdt.pncounter.PNCounter)

Aggregations

PNCounter (com.hazelcast.crdt.pncounter.PNCounter)11 Test (org.junit.Test)7 Address (com.hazelcast.cluster.Address)2 HazelcastInstance (com.hazelcast.core.HazelcastInstance)2 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)2 QuickTest (com.hazelcast.test.annotation.QuickTest)2 LocalPNCounterStats (com.hazelcast.internal.monitor.LocalPNCounterStats)1 ArrayList (java.util.ArrayList)1 Future (java.util.concurrent.Future)1 AtomicLong (java.util.concurrent.atomic.AtomicLong)1