|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VariableService
Variables service for reading and writing variables, and for setting a version number for the current thread to consider variables for.
See implementation class for further details.
Method Summary | |
---|---|
void |
commit()
Commits the variable outstanding changes. |
void |
createNewVariable(String variableName,
Class type,
Object value,
StatementExtensionSvcContext extensionServicesContext)
Creates a new variable. |
VariableReader |
getReader(String variableName)
Returns a reader that provides access to variable values. |
ReadWriteLock |
getReadWriteLock()
Lock for use in atomic writes to the variable space. |
void |
registerCallback(int variableNumber,
VariableChangeCallback variableChangeCallback)
Registers a callback invoked when the variable is written with a new value. |
void |
rollback()
Rolls back the variable outstanding changes. |
void |
setLocalVersion()
Sets the variable version that subsequent reads consider. |
void |
write(int variableNumber,
Object newValue)
Writes a new variable value. |
Method Detail |
---|
void setLocalVersion()
ReadWriteLock getReadWriteLock()
void createNewVariable(String variableName, Class type, Object value, StatementExtensionSvcContext extensionServicesContext) throws VariableExistsException, VariableTypeException
variableName
- name of the variabletype
- variable typevalue
- initialization value; String values are allowed and parsed according to typeextensionServicesContext
- is extensions for implementing resilience attributes of variables
VariableExistsException
- if the variable name is already in use
VariableTypeException
- if the variable type cannot be recognizedVariableReader getReader(String variableName)
variableName
- the variable that the reader should read
void registerCallback(int variableNumber, VariableChangeCallback variableChangeCallback)
variableNumber
- the variable index numbervariableChangeCallback
- a callbackvoid write(int variableNumber, Object newValue)
Must be followed by either a commit or rollback.
variableNumber
- the index number of the variable to write (from VariableReader)newValue
- the new valuevoid commit()
void rollback()
|
© 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 |