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

public class VersionTable<V> extends Object
Holds the an Entry version for optimistic locking.
Since:
5.0EAG Build#1400-010
Version:
1.0
Author:
Guy Korland
  • Field Details

  • Constructor Details

    • VersionTable

      public VersionTable()
      Creates a new Table and start a cleaner.
  • Method Details

    • clear

      public void clear()
      Clear the the table
    • setEntryVersion

      protected void setEntryVersion(EntryInfoKey infoKey, V version)
      add EntryInfo to table.
      Parameters:
      infoKey - the entry key
      version - holds the entries version
    • getEntryVersion

      protected V getEntryVersion(EntryInfoKey infoKey)
      return null; get entry version from table according to the value.
      Returns:
      the version object
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable