|
IBM WebSphere Extended Deployment (XD)TM, Release 6.1 ObjectGrid API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TxID
This interface is an opaque identifier for a transaction. Context information
can be stored and retrieved in multiple slots on this object. This mechanism
allows a TransactionCallback and Loader, for
example, to share state information with each other in the context of a
specific session transaction.
Loader,
ObjectGrid.reserveSlot(String),
Session,
TransactionCallback| Field Summary | |
|---|---|
static java.lang.String |
SLOT_NAME
All slots should be reserved using this name. |
| Method Summary | |
|---|---|
boolean |
equals(TxID o)
Checks for equality between two TxID objects. |
Session |
getSession()
Returns the Session that owns this TxID. |
java.lang.Object |
getSlot(int slotNumber)
Gets the context information currently associated with this transaction. |
int |
hashCode()
Returns the hashcode of the Tx identifier. |
void |
putSlot(int slotNumber,
java.lang.Object o)
Sets some context information to be associated with this transaction. |
| Field Detail |
|---|
static final java.lang.String SLOT_NAME
ObjectGrid.reserveSlot(String),
Constant Field Values| Method Detail |
|---|
boolean equals(TxID o)
o - Input TxID to check for equality against
int hashCode()
hashCode in class java.lang.Objectjava.lang.Object getSlot(int slotNumber)
slotNumber - the slot number for the context information being requested
putSlot(int, Object),
ObjectGrid.reserveSlot(String)
void putSlot(int slotNumber,
java.lang.Object o)
slotNumber - the slot numbero - Object to be put into the TxID slotgetSlot(int),
ObjectGrid.reserveSlot(String)Session getSession()
Session
|
IBM WebSphere Extended Deployment (XD)TM, Release 6.1 ObjectGrid API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||