org.semanticweb.elk.util.concurrent.sync
Class AtomicIntegerFork
java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicInteger
org.semanticweb.elk.util.concurrent.sync.AtomicIntegerFork
- All Implemented Interfaces:
- Serializable
public class AtomicIntegerFork
- extends AtomicInteger
An AtomicInteger through which one can modify the
AtomicInteger in an asynchronous way.
- Author:
- "Yevgeny Kazakov"
- See Also:
- Serialized Form
|
Method Summary |
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 |
| Methods inherited from class java.util.concurrent.atomic.AtomicInteger |
addAndGet, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, incrementAndGet, intValue, lazySet, longValue, set, toString, weakCompareAndSet |
AtomicIntegerFork
public AtomicIntegerFork(AtomicInteger parent)
getParent
public AtomicInteger getParent()
sync
public 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
Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.