|
IBM WebSphereTM eXtreme Scale, Release 8.6 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.
The TxID.toString() output can be used to determine whether the originating Session
transaction is a single partition transaction or a multi-partition transaction. If the
String output begins with the keyword Local
then this indicates a single
partition transaction, for example: Local-40000139-72B2-C037-E000-1C271366B073
If the String output begins with the keyword WXS
then this indicates a
multi-partition transaction, for example: WXS-40000139-72B2-BD3A-E000-1C271366B073
Loader
,
ObjectGrid.reserveSlot(String)
,
Session
,
TransactionCallback
Field Summary | |
---|---|
static 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. |
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,
Object o)
Sets some context information to be associated with this transaction. |
Field Detail |
---|
static final String SLOT_NAME
ObjectGrid.reserveSlot(String)
,
Constant Field ValuesMethod Detail |
---|
boolean equals(TxID o)
o
- Input TxID to check for equality against
int hashCode()
hashCode
in class Object
Object getSlot(int slotNumber)
slotNumber
- the slot number for the context information being requested
putSlot(int, Object)
,
ObjectGrid.reserveSlot(String)
void putSlot(int slotNumber, Object o)
slotNumber
- the slot numbero
- Object to be put into the TxID slotgetSlot(int)
,
ObjectGrid.reserveSlot(String)
Session getSession()
Session
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |