public class VariableVersionThreadEntry
extends java.lang.Object
Constructor and Description |
---|
VariableVersionThreadEntry(int version,
java.util.Map<java.lang.Integer,Pair<java.lang.Integer,java.lang.Object>> uncommitted)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,Pair<java.lang.Integer,java.lang.Object>> |
getUncommitted()
Returns a map of variable number and uncommitted value, or empty map or null if none exist
|
java.lang.Integer |
getVersion()
Returns the version visible for a thread.
|
void |
setUncommitted(java.util.Map<java.lang.Integer,Pair<java.lang.Integer,java.lang.Object>> uncommitted)
Sets a map of variable number and uncommitted value, or empty map or null if none exist
|
void |
setVersion(java.lang.Integer version)
Sets the version visible for a thread.
|
public VariableVersionThreadEntry(int version, java.util.Map<java.lang.Integer,Pair<java.lang.Integer,java.lang.Object>> uncommitted)
version
- current version number of the variables visible to threaduncommitted
- the uncommitted values of variables for the thread, if anypublic java.lang.Integer getVersion()
public void setVersion(java.lang.Integer version)
version
- version numberpublic java.util.Map<java.lang.Integer,Pair<java.lang.Integer,java.lang.Object>> getUncommitted()
public void setUncommitted(java.util.Map<java.lang.Integer,Pair<java.lang.Integer,java.lang.Object>> uncommitted)
uncommitted
- uncommitted values