
public interface OCommandContext
| Modifier and Type | Interface and Description |
|---|---|
static class |
OCommandContext.TIMEOUT_STRATEGY |
| Modifier and Type | Method and Description |
|---|---|
void |
beginExecution(long timeoutMs,
OCommandContext.TIMEOUT_STRATEGY iStrategy) |
boolean |
checkTimeout()
Check if timeout is elapsed, if defined.
|
OCommandContext |
copy()
Creates a copy of execution context.
|
Map<Object,Object> |
getInputParameters() |
OCommandContext |
getParent() |
Object |
getVariable(String iName) |
Object |
getVariable(String iName,
Object iDefaultValue) |
Map<String,Object> |
getVariables() |
OCommandContext |
incrementVariable(String getNeighbors) |
boolean |
isRecordingMetrics() |
void |
merge(OCommandContext iContext)
Merges a context with current one.
|
OCommandContext |
setChild(OCommandContext context) |
void |
setInputParameters(Map<Object,Object> inputParameters) |
OCommandContext |
setParent(OCommandContext iParentContext) |
OCommandContext |
setRecordingMetrics(boolean recordMetrics) |
OCommandContext |
setVariable(String iName,
Object iValue) |
long |
updateMetric(String iName,
long iValue)
Updates a counter.
|
OCommandContext setVariable(String iName, Object iValue)
OCommandContext incrementVariable(String getNeighbors)
OCommandContext getParent()
OCommandContext setParent(OCommandContext iParentContext)
OCommandContext setChild(OCommandContext context)
long updateMetric(String iName, long iValue)
iName - Metric's nameiValue - delta to add or subtractboolean isRecordingMetrics()
OCommandContext setRecordingMetrics(boolean recordMetrics)
void beginExecution(long timeoutMs,
OCommandContext.TIMEOUT_STRATEGY iStrategy)
boolean checkTimeout()
OTimeoutException - if the strategy is "exception" (default)OCommandContext copy()
void merge(OCommandContext iContext)
iContext - Copyright © 2009–2025 OrientDB. All rights reserved.