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) |
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)
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.