Modifier and Type | Field and Description |
---|---|
protected long |
value |
protected long |
version |
Modifier | Constructor and Description |
---|---|
protected |
COUNTER.VersionedValue(long value) |
protected |
COUNTER.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 COUNTER.VersionedValue(long value)
protected COUNTER.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 © 2012 JBoss by Red Hat. All Rights Reserved.