public final class IcedAtomicInt extends java.util.concurrent.atomic.AtomicInteger implements Freezable
Constructor and Description |
---|
IcedAtomicInt() |
IcedAtomicInt(int val) |
Modifier and Type | Method and Description |
---|---|
byte[] |
asBytes()
Return serialized version of self as a byte array.
|
Freezable |
clone()
Make clone public, but without the annoying exception.
|
int |
frozenType()
Returns a small dense integer, which is cluster-wide unique per-class.
|
IcedAtomicInt |
read(AutoBuffer ab)
Standard "read thyself from the AutoBuffer" call, using the fast Iced protocol.
|
Freezable |
readJSON(AutoBuffer ab)
Standard "read thyself from the AutoBuffer" call, using JSON.
|
IcedAtomicInt |
reloadFromBytes(byte[] ary)
Replace yourself with deserialized version from the given bytes.
|
AutoBuffer |
write(AutoBuffer ab)
Standard "write thyself into the AutoBuffer" call, using the fast Iced
protocol.
|
AutoBuffer |
writeJSON(AutoBuffer ab)
Standard "write thyself into the AutoBuffer" call, using JSON.
|
accumulateAndGet, addAndGet, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, incrementAndGet, intValue, lazySet, longValue, set, toString, updateAndGet, weakCompareAndSet
public final AutoBuffer write(AutoBuffer ab)
Freezable
Icer
classes.write
in interface Freezable
ab
- AutoBuffer
to write this object to.AutoBuffer
for flow-coding.public final IcedAtomicInt read(AutoBuffer ab)
Freezable
Icer
classes.public AutoBuffer writeJSON(AutoBuffer ab)
Freezable
Icer
classes.writeJSON
in interface Freezable
ab
- AutoBuffer
to write this object to.AutoBuffer
for flow-coding.public Freezable readJSON(AutoBuffer ab)
Freezable
Icer
classes.public int frozenType()
Freezable
frozenType
in interface Freezable
public byte[] asBytes()
Freezable
public IcedAtomicInt reloadFromBytes(byte[] ary)
Freezable
reloadFromBytes
in interface Freezable
ary
- byte array containing exactly (i.e. nothing else) the serialized version of the Freezable