Class VariableReader
java.lang.Object
com.espertech.esper.common.internal.epl.variable.core.VariableReader
Reads and writes variable values.
Works closely with VariableManagementService
in determining the version to read.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVariableReader
(Variable variable, VariableVersionThreadLocal versionThreadLocal, VersionedValueList<Object> versionsLow) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Returns the value of a variable.void
setVersionsHigh
(VersionedValueList<Object> versionsHigh) For roll-over (overflow) in version numbers, sets a new collection of versioned-values for the variable to use when requests over the version rollover boundary are made.void
setVersionsLow
(VersionedValueList<Object> versionsLow) Sets a new list of versioned-values to inquire against, for use when version numbers roll-over.
-
Field Details
-
EPTYPE
-
EPTYPEARRAY
-
-
Constructor Details
-
VariableReader
public VariableReader(Variable variable, VariableVersionThreadLocal versionThreadLocal, VersionedValueList<Object> versionsLow)
-
-
Method Details
-
setVersionsHigh
For roll-over (overflow) in version numbers, sets a new collection of versioned-values for the variable to use when requests over the version rollover boundary are made.- Parameters:
versionsHigh
- the list of versions for roll-over
-
setVersionsLow
Sets a new list of versioned-values to inquire against, for use when version numbers roll-over.- Parameters:
versionsLow
- the list of versions for read
-
getValue
Returns the value of a variable.Considers the version set via thread-local for the thread's atomic read of variable values.
- Returns:
- value of variable at the version applicable for the thead
-
getMetaData
-
getVersionsLow
-
getVariable
-