|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectconcurrency.Transaction
This class represents a transaction, encloses a number of transaction.
Nested Class Summary | |
static class |
Transaction.Comparator
A comparator to order transactions. |
Field Summary | |
static Transaction.Comparator |
comparator
The transactions' comparator. |
Constructor Summary | |
Transaction(long number)
Constructs a transaction with a specified number. |
Method Summary | |
int |
compare(java.lang.Object obj)
|
int |
compare(Transaction t)
Compares two transactions using their numbers. |
boolean |
equals(java.lang.Object obj)
|
boolean |
equals(Transaction trans)
Compare if two transactions has the same number. |
long |
getCreationTime()
Returns the creation time of the transaction. |
long |
getTransactionNumber()
Returns the transaction number. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static Transaction.Comparator comparator
Constructor Detail |
public Transaction(long number)
Method Detail |
public long getTransactionNumber()
public long getCreationTime()
public boolean equals(Transaction trans)
public boolean equals(java.lang.Object obj)
public int compare(Transaction t)
public int compare(java.lang.Object obj)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |