use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.
the class GetAndAlterOperation method run.
@Override
public void run() throws Exception {
AtomicLongContainer atomicLongContainer = getLongContainer();
long input = atomicLongContainer.get();
response = input;
long output = function.apply(input);
shouldBackup = input != output;
if (shouldBackup) {
backup = output;
atomicLongContainer.set(output);
}
}
use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.
the class GetAndSetOperation method run.
@Override
public void run() throws Exception {
AtomicLongContainer atomicLongContainer = getLongContainer();
returnValue = atomicLongContainer.getAndSet(newValue);
}
use of com.hazelcast.concurrent.atomiclong.AtomicLongContainer in project hazelcast by hazelcast.
the class GetOperation method run.
@Override
public void run() throws Exception {
AtomicLongContainer atomicLongContainer = getLongContainer();
returnValue = atomicLongContainer.get();
}
Aggregations