public abstract class TAtomic<T extends Freezable> extends Atomic<TAtomic<T>>
DTask.DKeyTask<T extends DTask.DKeyTask,V extends Keyed>, DTask.RemoveCall
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) |
void |
onSuccess(T old) |
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
asBytes, clone, compute, compute1, currThrPriority, frozenType, icer, priority, read, readJSON, reloadFromBytes, write, writeJSON
__tryComplete, addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, onCompletion, onExceptionalCompletion, 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.protected void onSuccess(Value old)
Atomic
public void onSuccess(T old)