public class Transaction
extends java.lang.Object
SessionManager
takes either a single
Transaction or an array of Transactions as an argument to SessionManager.execute(com.ausregistry.jtoolkit2.session.Transaction)
.Constructor and Description |
---|
Transaction(Command command,
Response response)
Create a Transaction from the given command/response pair.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Get the cause of failure of this Transaction.
|
Command |
getCommand() |
Response |
getResponse() |
long |
getResponseTime()
The interval of time (in milliseconds) that elapsed between when the
start method was executed and when the transaction completed, as
determined by a change in transaction state.
|
TransactionState |
getState()
Get the current state of this Transaction.
|
void |
setCause(java.lang.Throwable cause)
Indicate the cause of failure of this Transaction.
|
void |
setState(TransactionState state)
Indicate the new state of this Transaction.
|
void |
start()
Indicate that the transaction is now in progress.
|
public Command getCommand()
public Response getResponse()
public TransactionState getState()
public void setState(TransactionState state)
getState()
.public java.lang.Throwable getCause()
public void setCause(java.lang.Throwable cause)
setState(TransactionState)
, the application should not generally use
this.public void start()
public long getResponseTime()