|
Berkeley DB Java Edition version 4.0.117 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sleepycat.je.CommitToken
public class CommitToken
Defines an opaque token that can be used to identify a specific transaction commit in a replicated environment. It's unique relative to its environment.
Since CommitTokens identify a point in the serialized transaction schedule
created on the master, it's meaningful to compare commit tokens,
as described in the compareTo(CommitToken) method below.
CommitTokens are obtained from Transaction.getCommitToken()
CommitPointConsistencyPolicy,
Serialized Form| Method Summary | |
|---|---|
int |
compareTo(CommitToken other)
Implements the Comparable interface. |
boolean |
equals(Object obj)
|
UUID |
getRepenvUUID()
|
long |
getVLSN()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public UUID getRepenvUUID()
public long getVLSN()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(CommitToken other)
CommitToken(1) < CommitToken(2) implies that CommitToken(1) represents a state of the database that preceded the state defined by CommitToken(2).
compareTo in interface Comparable<CommitToken>IllegalArgumentException - if two tokens from different
environments are compared.public String toString()
toString in class Object
|
Berkeley DB Java Edition version 4.0.117 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||