net.esper.eql.variable
Interface VariableStateHandler


public interface VariableStateHandler

Interface for a plug-in to VariableService to handle variable persistent state.


Method Summary
 Pair<Boolean,Object> getHasState(String variableName, int variableNumber, Class type, StatementExtensionSvcContext statementExtContext)
          Returns the current variable state plus Boolean.TRUE if there is a current state since the variable may have the value of null; returns Boolean.FALSE and null if there is no current state
 void setState(String variableName, int variableNumber, Object newValue)
          Sets the new variable value
 

Method Detail

getHasState

Pair<Boolean,Object> getHasState(String variableName,
                                 int variableNumber,
                                 Class type,
                                 StatementExtensionSvcContext statementExtContext)
Returns the current variable state plus Boolean.TRUE if there is a current state since the variable may have the value of null; returns Boolean.FALSE and null if there is no current state

Parameters:
variableName - variable name
variableNumber - number of the variable
type - type of the variable
statementExtContext - for caches etc.
Returns:
indicator whether the variable is known and it's state, or whether it doesn't have state (false)

setState

void setState(String variableName,
              int variableNumber,
              Object newValue)
Sets the new variable value

Parameters:
variableName - name of the variable
variableNumber - number of the variable
newValue - new variable value, null values allowed

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com