| Modifier and Type | Field and Description |
|---|---|
| public static final AccessMode | CONCURRENT
This access mode provides concurrent access to context local storage with thread safety and atomicity. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the object atindexthe array locals, int the index idx)Return the object at index |
| public Object | getOrCreate(AtomicReferenceArray<Object>
the array locals, int the index idx, Supplier<Object> the supplier of the initial value initialValueSupplier)Get or create the object at index |
| public void | put(AtomicReferenceArray<Object>
the array locals, int the index idx, Object the value value)Put |
| CONCURRENT | back to summary |
|---|---|
| public static final AccessMode CONCURRENT This access mode provides concurrent access to context local storage with thread safety and atomicity. | |
| get | back to summary |
|---|---|
| public Object get(AtomicReferenceArray<Object> locals, int idx) Return the object at index
| |
| getOrCreate | back to summary |
|---|---|
| public Object getOrCreate(AtomicReferenceArray<Object> locals, int idx, Supplier<Object> initialValueSupplier) Get or create the object at index
| |
| put | back to summary |
|---|---|
| public void put(AtomicReferenceArray<Object> locals, int idx, Object value) Put
| |