use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.
the class AddBackupOperation method run.
@Override
public void run() throws Exception {
AtomicLongContainer atomicLongContainer = getLongContainer();
atomicLongContainer.addAndGet(delta);
}
use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.
the class AlterAndGetOperation method run.
@Override
public void run() throws Exception {
AtomicLongContainer atomicLongContainer = getLongContainer();
long input = atomicLongContainer.get();
long output = function.apply(input);
shouldBackup = input != output;
if (shouldBackup) {
backup = output;
atomicLongContainer.set(output);
}
response = output;
}
use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.
the class AlterOperation method run.
@Override
public void run() throws Exception {
AtomicLongContainer atomicLongContainer = getLongContainer();
long input = atomicLongContainer.get();
long output = function.apply(input);
shouldBackup = input != output;
if (shouldBackup) {
backup = output;
atomicLongContainer.set(backup);
}
}
use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.
the class ApplyOperation method run.
@Override
public void run() throws Exception {
AtomicLongContainer atomicLongContainer = getLongContainer();
returnValue = function.apply(atomicLongContainer.get());
}
use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.
the class AtomicLongReplicationOperation method run.
@Override
public void run() throws Exception {
AtomicLongService atomicLongService = getService();
for (Map.Entry<String, Long> longEntry : migrationData.entrySet()) {
String name = longEntry.getKey();
AtomicLongContainer atomicLongContainer = atomicLongService.getLongContainer(name);
Long value = longEntry.getValue();
atomicLongContainer.set(value);
}
}
Aggregations