org.jboss.cache.optimistic
Interface DataVersion
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- DefaultDataVersion
public interface DataVersion
- extends java.io.Serializable
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.
- Author:
- Manik Surtani (manik@jboss.org)
Method Summary |
boolean |
newerThan(DataVersion other)
Returns true if this is a newer version than other . |
newerThan
boolean newerThan(DataVersion other)
- Returns true if this is a newer version than
other
.
Copyright © 1998-2005 JBoss Inc . All Rights Reserved.