|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.outrigger.TxnTable.Key
private class TxnTable.Key
Key class for the primary map (from manager/id pairs to Txn
s. We use a new class instead of ServerTransaction
objects
so we can make sure we don't call equals
on unprepared
managers.
Field Summary | |
---|---|
private long |
id
The id for the transaction |
private TransactionManager |
manager
The manager for the transaction |
private boolean |
prepared
True if it has been asserted that manager has been
prepared. |
Constructor Summary | |
---|---|
private |
TxnTable.Key(TransactionManager manager,
long id,
boolean prepared)
Create a new key from the specified manager and id. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final TransactionManager manager
private final long id
private final boolean prepared
manager
has been
prepared. Note, we only put Keys in the table that have this flag
set.
Constructor Detail |
---|
private TxnTable.Key(TransactionManager manager, long id, boolean prepared)
manager
- the manager for the transactionid
- the id for the transactionprepared
- should be true
if the manager has been
prepared and false otherwise
NullPointerException
- if manager is null
.Method Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |