Package com.j_spaces.core.client.version
Class VersionTable<V>
java.lang.Object
com.j_spaces.core.client.version.VersionTable<V>
- Type Parameters:
V- the type of the Object that holds the Version
- Direct Known Subclasses:
MapVersionTable
Holds the an Entry version for optimistic locking.
- Since:
- 5.0EAG Build#1400-010
- Version:
- 1.0
- Author:
- Guy Korland
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the the tableprotected voidfinalize()protected VgetEntryVersion(EntryInfoKey infoKey) return null; get entry version from table according to the value.protected voidsetEntryVersion(EntryInfoKey infoKey, V version) add EntryInfo to table.
-
Field Details
-
_freeEntryQueue
-
-
Constructor Details
-
VersionTable
public VersionTable()Creates a new Table and start a cleaner.
-
-
Method Details
-
clear
public void clear()Clear the the table -
setEntryVersion
add EntryInfo to table.- Parameters:
infoKey- the entry keyversion- holds the entries version
-
getEntryVersion
return null; get entry version from table according to the value.- Returns:
- the version object
-
finalize
-