Interface DataVersion

All Superinterfaces:
All Known Implementing Classes:

public interface DataVersion

When versioning data nodes in optimistic locking, a DataVersion is assigned to each node. Versions need to implement the newerThan(org.jboss.cache.optimistic.DataVersion) method so they can be compared during the validation phase upon commit.

Manik Surtani (

Method Summary
 boolean newerThan(DataVersion other)
          Returns true if this is a newer version than other.

Method Detail


boolean newerThan(DataVersion other)
Returns true if this is a newer version than other. There is no guarantee that the DataVersion passed in will be of the same implementation, and as such, it is up to the implementation to perform any type checking if needed before comparison.

Copyright © 1998-2005 JBoss Inc . All Rights Reserved.