use of com.hazelcast.cp.internal.datastructures.atomiclong.operation.AddAndGetOp in project hazelcast by hazelcast.
the class AddAndGetMessageTask method processMessage.
@Override
protected void processMessage() {
CPGroupId groupId = parameters.groupId;
long delta = parameters.delta;
RaftOp op = new AddAndGetOp(parameters.name, delta);
if (delta == 0) {
query(groupId, op, LINEARIZABLE);
} else {
invoke(groupId, op);
}
}
Aggregations