Example usage for Java io.netty.util Attribute fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | compareAndSet(T oldValue, T newValue) Atomically sets the value to the given updated value if the current value == the expected value. |
T | get() Returns the current value, which may be null |
T | getAndRemove() Removes this attribute from the AttributeMap and returns the old value. |
T | getAndSet(T value) Atomically sets to the given value and returns the old value which may be null if non was set before. |
AttributeKey | key() Returns the key of this attribute. |
void | remove() Removes this attribute from the AttributeMap . |
void | set(T value) Sets the value |
T | setIfAbsent(T value) Atomically sets to the given value if this Attribute 's value is null . |