water
Class TAtomic<T extends Iced>

java.lang.Object
  extended by jsr166y.ForkJoinTask<java.lang.Void>
      extended by jsr166y.CountedCompleter
          extended by water.H2O.H2OCountedCompleter
              extended by water.DTask
                  extended by water.Atomic<TAtomic<T>>
                      extended by water.TAtomic<T>
All Implemented Interfaces:
java.io.Serializable, java.util.concurrent.Future<java.lang.Void>, Freezable

public abstract class TAtomic<T extends Iced>
extends Atomic<TAtomic<T>>

A typed atomic update.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class water.Atomic
_key
 
Fields inherited from class water.DTask
_cls, _eFromNode, _exception, _fname, _lineNum, _msg, _mth
 
Constructor Summary
TAtomic()
           
 
Method Summary
abstract  T atomic(T old)
          Atomically update an old value to a new one.
 Value atomic(Value val)
           
 
Methods inherited from class water.Atomic
compute2, fork, invoke, onSuccess, priority
 
Methods inherited from class water.DTask
clone, copyOver, dinvoke, frozenType, getDException, hasException, logVerbose, newInstance, onAck, onAckAck, onExceptionalCompletion, read, setException, toDocField, write, writeJSONFields
 
Methods inherited from class water.H2O.H2OCountedCompleter
compute
 
Methods inherited from class jsr166y.CountedCompleter
addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, onCompletion, setCompleter, setPendingCount, setRawResult, tryComplete
 
Methods inherited from class jsr166y.ForkJoinTask
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TAtomic

public TAtomic()
Method Detail

atomic

public abstract T atomic(T old)
Atomically update an old value to a new one.

Parameters:
old - The old value, it may be null. It is a defensive copy.
Returns:
The new value; if null if this atomic update no longer needs to be run

atomic

public Value atomic(Value val)
Specified by:
atomic in class Atomic<TAtomic<T extends Iced>>