Package com.j_spaces.core.client
Class TransactionInfo
java.lang.Object
com.j_spaces.core.client.TransactionInfo
- All Implemented Interfaces:
Serializable
Transaction information.
- Version:
- 4.5
- Author:
- Guy Korland
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTransactionInfo(int type, int status, Transaction trasaction, long lease, long startTime, int numberOfLockedObjects) Constructor. -
Method Summary
-
Constructor Details
-
TransactionInfo
public TransactionInfo(int type, int status, Transaction trasaction, long lease, long startTime, int numberOfLockedObjects) Constructor.- Parameters:
type- fromTransactionInfo.Types(LOCAL, JINI, XA or ALL)status- can be one of the status defined inTransactionConstantstrasaction- the transaction that own this infolease- the transaction leasestartTime- when the Transaction started
-
-
Method Details
-
getStatus
public int getStatus()Returns the transaction status.- Returns:
- transaction status.
-
getTrasaction
Returns the transaction that own the info.- Returns:
- the transaction.
-
getType
public int getType()Returns the type. FromTransactionInfo.Types- Returns:
- Transaction type.
-
getLease
public long getLease()Returns the lease of the transaction. in case of JINI Txn return -1- Returns:
- transaction lease.
-
getNumberOfLockedObjects
public int getNumberOfLockedObjects()- Returns:
- number of objects locked by Transaction
-
getStartTime
public long getStartTime()- Returns:
- the time the Transaction started
-
getTxnId
- Returns:
- the Transaction ID
-
equals
-
hashCode
public int hashCode()
-