Interface AtomicValue<T>
-
public interface AtomicValue<T>Abstracts a value returned from one of the Atomics
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AtomicStatsgetStats()Returns debugging stats about the operationTpostValue()Returns the value of the counter after to the operationTpreValue()Returns the value of the counter prior to the operationbooleansucceeded()MUST be checked. Returns true if the operation succeeded.
-
-
-
Method Detail
-
succeeded
boolean succeeded()
MUST be checked. Returns true if the operation succeeded. If false is returned, the operation failed and the atomic was not updated.- Returns:
- true/false
-
preValue
T preValue()
Returns the value of the counter prior to the operation- Returns:
- pre-operation value
-
postValue
T postValue()
Returns the value of the counter after to the operation- Returns:
- post-operation value
-
getStats
AtomicStats getStats()
Returns debugging stats about the operation- Returns:
- stats
-
-