public class AtomicIntegerFork extends AtomicInteger
AtomicInteger through which one can modify the
AtomicInteger in an asynchronous way.| Constructor and Description |
|---|
AtomicIntegerFork(AtomicInteger parent) |
| Modifier and Type | Method and Description |
|---|---|
AtomicInteger |
getParent() |
void |
sync()
move the changes with this counter to the parent counter; the sums of the
counters should be preserved if none of them is modified
|
accumulateAndGet, addAndGet, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, incrementAndGet, intValue, lazySet, longValue, set, toString, updateAndGet, weakCompareAndSetbyteValue, shortValuepublic AtomicIntegerFork(AtomicInteger parent)
public AtomicInteger getParent()
public void sync()
Copyright © 2011–2024 Live Ontologies Project. All rights reserved.