public class SchedulerLocal<T>
extends java.lang.Object
FiberScheduler| Constructor and Description |
|---|
SchedulerLocal() |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Returns the scheduler-local value of this
SchedulerLocal. |
protected T |
initialValue(FiberScheduler scheduler)
Computes the initial value for the current
FiberScheduler. |
void |
remove()
Removes the association between the scheduler-local value and the current scheduler.
|
void |
set(T value)
Sets the scheduler-local value of this
SchedulerLocal. |
protected T initialValue(FiberScheduler scheduler)
FiberScheduler.
Returns null by default;scheduler - the current FiberSchedulerpublic final T get() throws SuspendExecution
SchedulerLocal.SuspendExecutionpublic final void set(T value)
SchedulerLocal.public final void remove()
get() would return the initial value returned by a fresh call to initialValue.