net.esper.eql.variable
Class VariableVersionThreadEntry

java.lang.Object
  extended by net.esper.eql.variable.VariableVersionThreadEntry

public class VariableVersionThreadEntry
extends Object

Thread-specific state in regards to variable versions.


Constructor Summary
VariableVersionThreadEntry(int version, Map<Integer,Object> uncommitted)
          Ctor.
 
Method Summary
 Map<Integer,Object> getUncommitted()
          Returns a map of variable number and uncommitted value, or empty map or null if none exist
 Integer getVersion()
          Returns the version visible for a thread.
 void setUncommitted(Map<Integer,Object> uncommitted)
          Sets a map of variable number and uncommitted value, or empty map or null if none exist
 void setVersion(Integer version)
          Sets the version visible for a thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableVersionThreadEntry

public VariableVersionThreadEntry(int version,
                                  Map<Integer,Object> uncommitted)
Ctor.

Parameters:
version - current version number of the variables visible to thread
uncommitted - the uncommitted values of variables for the thread, if any
Method Detail

getVersion

public Integer getVersion()
Returns the version visible for a thread.

Returns:
version number

setVersion

public void setVersion(Integer version)
Sets the version visible for a thread.

Parameters:
version - version number

getUncommitted

public Map<Integer,Object> getUncommitted()
Returns a map of variable number and uncommitted value, or empty map or null if none exist

Returns:
uncommitted values

setUncommitted

public void setUncommitted(Map<Integer,Object> uncommitted)
Sets a map of variable number and uncommitted value, or empty map or null if none exist

Parameters:
uncommitted - uncommitted values

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