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