|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alachisoft.ncache.web.caching.CacheItemVersion
public final class CacheItemVersion
Represents the version of each cache item. An instance of this class is used in the optimistic concurrency model to ensure the data integrity.
Constructor Summary | |
---|---|
CacheItemVersion()
|
Method Summary | |
---|---|
int |
compareTo(CacheItemVersion itemVersion)
Compare CacheItemVersion with current instance of item version |
long |
getVersion()
Get item version |
void |
setVersion(long version)
Set item version |
java.lang.String |
toString()
The string representation of this class. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CacheItemVersion()
Method Detail |
---|
public int compareTo(CacheItemVersion itemVersion)
compareTo
in interface java.lang.Comparable<CacheItemVersion>
itemVersion
- item version to be compared
public long getVersion()
public void setVersion(long version)
version
- Item's versionpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |