Additional top-level classes in compilation unit: PaddedAtomicLongL1Pad, PaddedAtomicLongL1Field, PaddedAtomicLongL2Pad.
java.util.concurrent.atomic.AtomicLong .
| Access | Constructor and Description |
|---|---|
| public | |
| public | PaddedAtomicLong(long
the initial value initialValue)Creates a new PaddedAtomicLong with the given initial value. |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long | Returns: the updated valuethe value to add delta)Atomically adds to current value te given value. |
| public boolean | Returns: true if successful. False return indicates that
the actual value was not equal to the expected value.the expected value expect, long the new value update)Atomically sets the value to the given updated value
if the current value |
| public long | |
| public double | |
| public float | |
| public long | |
| public long | Returns: the previous valuethe update value v, LongBinaryOperator a side-effect-free function of two arguments f)Atomically updates the current value with the results of applying the given function to the current and given values, returning the previous value. |
| public long | Returns: the previous valuethe value to add delta)Atomically adds to the current value the given value. |
| public long | |
| public long | |
| public long | Returns: the previous valuethe new value newValue)Atomically sets to the given value and returns the old value. |
| public long | Returns: the previous valuea side-effect-free function updateFunction)Atomically updates the current value with the results of applying the given function, returning the previous value. |
| public long | |
| public int | |
| public void | |
| public long | |
| public void | |
| public String | Returns: the String representation of the current valueOverrides java. |
| public long | Returns: the updated valuea side-effect-free function updateFunction)Atomically updates the current value with the results of applying the given function, returning the updated value. |
| public boolean | Returns: true if successfulthe expected value expect, long the new value update)Atomically sets the value to the given updated value
if the current value |
| PaddedAtomicLong | back to summary |
|---|---|
| public PaddedAtomicLong() Creates a new PaddedAtomicLong with initial value | |
| PaddedAtomicLong | back to summary |
|---|---|
| public PaddedAtomicLong(long initialValue) Creates a new PaddedAtomicLong with the given initial value.
| |
| accumulateAndGet | back to summary |
|---|---|
| public long accumulateAndGet(long x, LongBinaryOperator f)
| |
| addAndGet | back to summary |
|---|---|
| public long addAndGet(long delta) Atomically adds to current value te given value.
| |
| compareAndSet | back to summary |
|---|---|
| public boolean compareAndSet(long expect, long update) Atomically sets the value to the given updated value
if the current value
| |
| decrementAndGet | back to summary |
|---|---|
| public long decrementAndGet() Atomically decrements the current value by one.
| |
| doubleValue | back to summary |
|---|---|
| public double doubleValue() Implements abstract java. Returns the value of a
| |
| floatValue | back to summary |
|---|---|
| public float floatValue() Implements abstract java. Returns the value of a
| |
| get | back to summary |
|---|---|
| public long get() Gets the current value.
| |
| getAndAccumulate | back to summary |
|---|---|
| public long getAndAccumulate(long v, LongBinaryOperator f) Atomically updates the current value with the results of applying the given function to the current and given values, returning the previous value. The function should be side-effect-free, since it may be re-applied when attempted updates fail due to contention among threads. The function is applied with the current value as its first argument, and the given update as the second argument.
| |
| getAndAdd | back to summary |
|---|---|
| public long getAndAdd(long delta) Atomically adds to the current value the given value.
| |
| getAndDecrement | back to summary |
|---|---|
| public long getAndDecrement() Atomically decrements the current value by 1.
| |
| getAndIncrement | back to summary |
|---|---|
| public long getAndIncrement() Atomically increments the current value by 1.
| |
| getAndSet | back to summary |
|---|---|
| public long getAndSet(long newValue) Atomically sets to the given value and returns the old value.
| |
| getAndUpdate | back to summary |
|---|---|
| public long getAndUpdate(LongUnaryOperator updateFunction) Atomically updates the current value with the results of applying the given function, returning the previous value. The function should be side-effect-free, since it may be re-applied when attempted updates fail due to contention among threads.
| |
| incrementAndGet | back to summary |
|---|---|
| public long incrementAndGet() Atomically increments the current value by one.
| |
| intValue | back to summary |
|---|---|
| public int intValue() Implements abstract java. Returns the value as an
| |
| lazySet | back to summary |
|---|---|
| public void lazySet(long newValue) Eventually sets to the given value.
| |
| longValue | back to summary |
|---|---|
| public long longValue() Implements abstract java. Returns the value as a
| |
| set | back to summary |
|---|---|
| public void set(long newValue) Sets to the given value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the String representation of the current value. | |
| updateAndGet | back to summary |
|---|---|
| public long updateAndGet(LongUnaryOperator updateFunction) Atomically updates the current value with the results of applying the given function, returning the updated value. The function should be side-effect-free, since it may be re-applied when attempted updates fail due to contention among threads.
| |
| weakCompareAndSet | back to summary |
|---|---|
| public boolean weakCompareAndSet(long expect, long update) Atomically sets the value to the given updated value
if the current value May fail
spuriously and does not provide ordering guarantees, so is
only rarely an appropriate alternative to
| |