CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.util
Interface Versionable


public interface Versionable

An interface for versionable data.

Author:
cp 2000.10.20

Method Summary
 Comparable getVersionIndicator()
          Get the version indicator for this object.
 void incrementVersion()
          Update the version to the next logical version indicator.
 

Method Detail

getVersionIndicator

Comparable getVersionIndicator()
Get the version indicator for this object. The version indicator should be an immutable object or one treated as an immutable, which is to say that after the version is incremented, the previous version's indicator reference will never be returned again.

Returns:
a non-null version value that implements the Comparable interface

incrementVersion

void incrementVersion()
Update the version to the next logical version indicator.

Throws:
UnsupportedOperationException - if the object is immutable or if the object does not know how to increment its own version indicator

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation