Class MapVersionTable
java.lang.Object
com.j_spaces.core.client.version.VersionTable<Integer>
com.j_spaces.core.client.version.map.MapVersionTable
Holds the version for each Object for optimistic locking.
- Since:
- 5.0EAG Build#1400-010
- Version:
- 1.0
- Author:
- Guy Korland
-
Field Summary
Fields inherited from class com.j_spaces.core.client.version.VersionTable
_freeEntryQueue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetEntryVersion(Object value, Object key) get value+key version from table according to the value.static MapVersionTablevoidsetEntryVersion(Object value, Object key, int version) Add a new value+key to version tableMethods inherited from class com.j_spaces.core.client.version.VersionTable
clear, finalize, getEntryVersion, setEntryVersion
-
Constructor Details
-
MapVersionTable
public MapVersionTable()
-
-
Method Details
-
getInstance
- Returns:
- a weak singleton MapVersionTable instance.
-
setEntryVersion
Add a new value+key to version table -
getEntryVersion
get value+key version from table according to the value.- Returns:
- the value+key version
-