| Modifier and Type | Method and Description |
|---|---|
| public boolean | compareAndSet(T oldValue, T newValue)
Atomically sets the value to the given updated value if the current value == the expected value. |
| public T | |
| public T | getAndRemove()
Deprecated
please consider using
Removes this attribute from the getAndSet(Object) (with value of null).
AttributeMap and returns the old value.
|
| public T | getAndSet(T value)
Atomically sets to the given value and returns the old value which may be |
| public AttributeKey | |
| public void | remove()
Deprecated
please consider using
Removes this attribute from the set(Object) (with value of null).
AttributeMap.
|
| public void | |
| public T |
| compareAndSet | back to summary |
|---|---|
| public boolean compareAndSet(T oldValue, T newValue) Atomically sets the value to the given updated value if the current value == the expected value.
If it the set was successful it returns | |
| get | back to summary |
|---|---|
| public T get() Returns the current value, which may be | |
| getAndRemove | back to summary |
|---|---|
| public T getAndRemove()
Deprecated please consider using Removes this attribute from the
Be aware that even if you call this method another thread that has obtained a reference to this
| |
| getAndSet | back to summary |
|---|---|
| public T getAndSet(T value) Atomically sets to the given value and returns the old value which may be | |
| key | back to summary |
|---|---|
| public AttributeKey Returns the key of this attribute. | |
| remove | back to summary |
|---|---|
| public void remove()
Deprecated please consider using Removes this attribute from the
Be aware that even if you call this method another thread that has obtained a reference to this
| |
| set | back to summary |
|---|---|
| public void set(T value) Sets the value | |
| setIfAbsent | back to summary |
|---|---|
| public T setIfAbsent(T value) Atomically sets to the given value if this | |