public class OScenarioThreadLocal extends ThreadLocal<OScenarioThreadLocal.RunContext>
Modifier and Type | Class and Description |
---|---|
static class |
OScenarioThreadLocal.RUN_MODE |
static class |
OScenarioThreadLocal.RunContext |
Modifier and Type | Field and Description |
---|---|
static OScenarioThreadLocal |
INSTANCE |
Constructor and Description |
---|
OScenarioThreadLocal() |
Modifier and Type | Method and Description |
---|---|
static <T> Object |
executeAsDefault(Callable<T> iCallback) |
static Object |
executeAsDistributed(Callable<? extends Object> iCallback) |
OScenarioThreadLocal.RUN_MODE |
getRunMode() |
protected OScenarioThreadLocal.RunContext |
initialValue() |
boolean |
isRunModeDistributed() |
void |
setRunMode(OScenarioThreadLocal.RUN_MODE value) |
get, remove, set, withInitial
public static volatile OScenarioThreadLocal INSTANCE
public static Object executeAsDistributed(Callable<? extends Object> iCallback)
public void setRunMode(OScenarioThreadLocal.RUN_MODE value)
public OScenarioThreadLocal.RUN_MODE getRunMode()
public boolean isRunModeDistributed()
protected OScenarioThreadLocal.RunContext initialValue()
initialValue
in class ThreadLocal<OScenarioThreadLocal.RunContext>
Copyright © 2009–2020 OrientDB. All rights reserved.