|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.variable.VariableReader
public class VariableReader
Reads and writes variable values.
Works closely with VariableService
in determining the version to read.
Constructor Summary | |
---|---|
VariableReader(VariableVersionThreadLocal versionThreadLocal,
Class type,
String variableName,
int variableNumber,
VersionedValueList<Object> versions)
Ctor. |
Method Summary | |
---|---|
Class |
getType()
Returns the type of the variable. |
Object |
getValue()
Returns the value of a variable. |
int |
getVariableNumber()
Returns the variable number. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableReader(VariableVersionThreadLocal versionThreadLocal, Class type, String variableName, int variableNumber, VersionedValueList<Object> versions)
versionThreadLocal
- service for returning the threads current version of variabletype
- is the type of the variable returnedvariableName
- variable namevariableNumber
- number of the variableversions
- a list of versioned-values to ask for the versionMethod Detail |
---|
public int getVariableNumber()
public Class getType()
public void setVersionsHigh(VersionedValueList<Object> versionsHigh)
versionsHigh
- the list of versions for roll-overpublic void setVersionsLow(VersionedValueList<Object> versionsLow)
versionsLow
- the list of versions for readpublic Object getValue()
Considers the version set via thread-local for the thread's atomic read of variable values.
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |