public abstract class TAtomic<T extends Freezable> extends Atomic<TAtomic<T>>
DTask.DKeyTask<T extends DTask.DKeyTask,V extends Keyed>, DTask.RemoveCall
_ex, _modifiesInputs
Constructor and Description |
---|
TAtomic() |
TAtomic(H2O.H2OCountedCompleter completer) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
atomic(T old)
Atomically update an old value to a new one.
|
protected Value |
atomic(Value val) |
protected void |
onSuccess(Value old)
Executed on the transaction key's home node after any successful
atomic update.
|
copyOver, dinvoke, getDException, hasException, logVerbose, onAck, onAckAck, setException
clone, compute, frozenType, icer, nextThrPriority, onExceptionalCompletion, read_impl, read, readJSON_impl, readJSON, write_impl, write, writeHTML_impl, writeHTML, writeJSON_impl, writeJSON
addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, onCompletion, setCompleter, setPendingCount, setRawResult, tryComplete
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
public TAtomic()
public TAtomic(H2O.H2OCountedCompleter completer)
protected abstract T atomic(T old)
old
- The old value, it may be null. It is a defensive copy.