Package | Description |
---|---|
org.apache.curator.framework.recipes.atomic |
Modifier and Type | Method and Description |
---|---|
AtomicValue<Integer> |
DistributedAtomicInteger.add(Integer delta)
Add delta to the current value and return the new value information.
|
AtomicValue<Long> |
DistributedAtomicLong.add(Long delta)
Add delta to the current value and return the new value information.
|
AtomicValue<T> |
DistributedAtomicNumber.add(T delta)
Add delta to the current value and return the new value information.
|
AtomicValue<byte[]> |
DistributedAtomicValue.compareAndSet(byte[] expectedValue,
byte[] newValue)
Atomically sets the value to the given updated value
if the current value
== the expected value. |
AtomicValue<Integer> |
DistributedAtomicInteger.compareAndSet(Integer expectedValue,
Integer newValue) |
AtomicValue<Long> |
DistributedAtomicLong.compareAndSet(Long expectedValue,
Long newValue) |
AtomicValue<T> |
DistributedAtomicNumber.compareAndSet(T expectedValue,
T newValue)
Atomically sets the value to the given updated value
if the current value
== the expected value. |
AtomicValue<Long> |
DistributedAtomicLong.decrement()
Subtract 1 from the current value and return the new value information.
|
AtomicValue<T> |
DistributedAtomicNumber.decrement()
Subtract 1 from the current value and return the new value information.
|
AtomicValue<Integer> |
DistributedAtomicInteger.decrement()
Subtract 1 from the current value and return the new value information.
|
AtomicValue<Long> |
DistributedAtomicLong.get() |
AtomicValue<T> |
DistributedAtomicNumber.get()
Returns the current value of the counter.
|
AtomicValue<Integer> |
DistributedAtomicInteger.get() |
AtomicValue<byte[]> |
DistributedAtomicValue.get()
Returns the current value of the counter.
|
AtomicValue<Long> |
DistributedAtomicLong.increment()
Add 1 to the current value and return the new value information.
|
AtomicValue<T> |
DistributedAtomicNumber.increment()
Add 1 to the current value and return the new value information.
|
AtomicValue<Integer> |
DistributedAtomicInteger.increment()
Add 1 to the current value and return the new value information.
|
AtomicValue<Long> |
CachedAtomicLong.next()
Returns the next value (incrementing by 1).
|
AtomicValue<Integer> |
CachedAtomicInteger.next()
Returns the next value (incrementing by 1).
|
AtomicValue<Integer> |
DistributedAtomicInteger.subtract(Integer delta)
Subtract delta from the current value and return the new value information.
|
AtomicValue<Long> |
DistributedAtomicLong.subtract(Long delta)
Subtract delta from the current value and return the new value information.
|
AtomicValue<T> |
DistributedAtomicNumber.subtract(T delta)
Subtract delta from the current value and return the new value information.
|
AtomicValue<byte[]> |
DistributedAtomicValue.trySet(byte[] newValue)
Attempt to atomically set the value to the given value.
|
AtomicValue<Integer> |
DistributedAtomicInteger.trySet(Integer newValue) |
AtomicValue<Long> |
DistributedAtomicLong.trySet(Long newValue) |
AtomicValue<T> |
DistributedAtomicNumber.trySet(T newValue)
Attempt to atomically set the value to the given value.
|
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.