public class TransactionInfo extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TransactionInfo.Types
The Transactions types.
|
Constructor and Description |
---|
TransactionInfo(int type,
int status,
Transaction trasaction,
long lease,
long startTime,
int numberOfLockedObjects)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getLease()
Returns the lease of the transaction.
|
int |
getNumberOfLockedObjects() |
long |
getStartTime() |
int |
getStatus()
Returns the transaction status.
|
Transaction |
getTrasaction()
Returns the transaction that own the info.
|
Object |
getTxnId() |
int |
getType()
Returns the type.
|
int |
hashCode() |
public TransactionInfo(int type, int status, Transaction trasaction, long lease, long startTime, int numberOfLockedObjects)
type
- from TransactionInfo.Types
(LOCAL, JINI, XA or ALL)status
- can be one of the status defined in TransactionConstants
trasaction
- the transaction that own this infolease
- the transaction leasestartTime
- when the Transaction startedpublic int getStatus()
public Transaction getTrasaction()
public int getType()
TransactionInfo.Types
public long getLease()
public int getNumberOfLockedObjects()
public long getStartTime()
public Object getTxnId()
Copyright © GigaSpaces.