Search in sources :

Example 1 with AtomicLongContainer

use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.

the class CompareAndSetOperation method run.

@Override
public void run() throws Exception {
    AtomicLongContainer atomicLongContainer = getLongContainer();
    returnValue = atomicLongContainer.compareAndSet(expect, update);
    shouldBackup = returnValue;
}
Also used : AtomicLongContainer(com.hazelcast.concurrent.atomiclong.AtomicLongContainer)

Example 2 with AtomicLongContainer

use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.

the class GetAndAddOperation method run.

@Override
public void run() throws Exception {
    AtomicLongContainer atomicLongContainer = getLongContainer();
    returnValue = atomicLongContainer.getAndAdd(delta);
}
Also used : AtomicLongContainer(com.hazelcast.concurrent.atomiclong.AtomicLongContainer)

Example 3 with AtomicLongContainer

use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.

the class SetBackupOperation method run.

@Override
public void run() throws Exception {
    AtomicLongContainer atomicLongContainer = getLongContainer();
    atomicLongContainer.set(newValue);
}
Also used : AtomicLongContainer(com.hazelcast.concurrent.atomiclong.AtomicLongContainer)

Example 4 with AtomicLongContainer

use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.

the class SetOperation method run.

@Override
public void run() throws Exception {
    AtomicLongContainer atomicLongContainer = getLongContainer();
    atomicLongContainer.set(newValue);
}
Also used : AtomicLongContainer(com.hazelcast.concurrent.atomiclong.AtomicLongContainer)

Example 5 with AtomicLongContainer

use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.

the class AddAndGetOperation method run.

@Override
public void run() throws Exception {
    AtomicLongContainer atomicLongContainer = getLongContainer();
    returnValue = atomicLongContainer.addAndGet(delta);
}
Also used : AtomicLongContainer(com.hazelcast.concurrent.atomiclong.AtomicLongContainer)

Aggregations

AtomicLongContainer (com.hazelcast.concurrent.atomiclong.AtomicLongContainer)13 AtomicLongService (com.hazelcast.concurrent.atomiclong.AtomicLongService)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1