org.semanticweb.elk.util.concurrent.sync
Class AtomicIntegerFork

java.lang.Object
  extended by java.lang.Number
      extended by java.util.concurrent.atomic.AtomicInteger
          extended by 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

Constructor Summary
AtomicIntegerFork(AtomicInteger parent)
           
 
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
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AtomicIntegerFork

public AtomicIntegerFork(AtomicInteger parent)
Method Detail

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.