|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.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,
java.lang.Class type,
EventType eventType,
java.lang.String variableName,
int variableNumber,
VersionedValueList<java.lang.Object> versions,
boolean constant)
Ctor. |
Method Summary | |
---|---|
EventType |
getEventType()
Returns the event type if the variable hold event(s). |
java.lang.Class |
getType()
Returns the type of the variable. |
java.lang.Object |
getValue()
Returns the value of a variable. |
java.lang.String |
getVariableName()
Returns the variable name. |
int |
getVariableNumber()
Returns the variable number. |
boolean |
isConstant()
|
void |
setVersionsHigh(VersionedValueList<java.lang.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<java.lang.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, java.lang.Class type, EventType eventType, java.lang.String variableName, int variableNumber, VersionedValueList<java.lang.Object> versions, boolean constant)
versionThreadLocal
- service for returning the threads current version of variabletype
- is the type of the variable returnedeventType
- if variable is an event then the type otherwise nullvariableName
- variable namevariableNumber
- number of the variableversions
- a list of versioned-values to ask for the versionMethod Detail |
---|
public java.lang.String getVariableName()
public int getVariableNumber()
public java.lang.Class getType()
public void setVersionsHigh(VersionedValueList<java.lang.Object> versionsHigh)
versionsHigh
- the list of versions for roll-overpublic void setVersionsLow(VersionedValueList<java.lang.Object> versionsLow)
versionsLow
- the list of versions for readpublic EventType getEventType()
public java.lang.Object getValue()
Considers the version set via thread-local for the thread's atomic read of variable values.
public boolean isConstant()
|
© 2006-2014 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 |