java.lang.Object
com.espertech.esper.common.internal.epl.variable.core.VariableReader

public class VariableReader extends Object
Reads and writes variable values.

Works closely with VariableManagementService in determining the version to read.

  • Field Details

  • Constructor Details

  • Method Details

    • setVersionsHigh

      public 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.
      Parameters:
      versionsHigh - the list of versions for roll-over
    • setVersionsLow

      public void setVersionsLow(VersionedValueList<Object> versionsLow)
      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

      public Object 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

      public VariableMetaData getMetaData()
    • getVersionsLow

      public VersionedValueList<Object> getVersionsLow()
    • getVariable

      public Variable getVariable()