protected static class COUNTER.VersionedValue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
value |
protected long |
version |
Modifier | Constructor and Description |
---|---|
protected |
VersionedValue(long value) |
protected |
VersionedValue(long value,
long version) |
Modifier and Type | Method and Description |
---|---|
protected long[] |
addAndGet(long num)
num == 0 --> GET
|
protected long[] |
compareAndSet(long expected,
long update) |
protected long[] |
set(long value) |
java.lang.String |
toString() |
protected void |
updateIfBigger(long value,
long version)
Sets the value only if the version argument is greater than the own version
|
protected VersionedValue(long value)
protected VersionedValue(long value, long version)
protected long[] addAndGet(long num)
protected long[] set(long value)
protected long[] compareAndSet(long expected, long update)
protected void updateIfBigger(long value, long version)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1998-2020 Red Hat. All Rights Reserved.