Package com.exonum.client.response
Class TransactionResponse
java.lang.Object
com.exonum.client.response.TransactionResponse
public final class TransactionResponse extends Object
-
Constructor Summary
Constructors Constructor Description TransactionResponse(TransactionStatus status, TransactionMessage message, Runtime.ExecutionStatus executionResult, TransactionLocation location)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
Runtime.ExecutionStatus
getExecutionResult()
Returns transaction execution result.TransactionLocation
getLocation()
Returns transaction location in the blockchain.TransactionMessage
getMessage()
Transaction message.TransactionStatus
getStatus()
Current status of the transaction.int
hashCode()
boolean
isCommitted()
String
toString()
-
Constructor Details
-
TransactionResponse
public TransactionResponse(TransactionStatus status, TransactionMessage message, Runtime.ExecutionStatus executionResult, TransactionLocation location)
-
-
Method Details
-
getExecutionResult
Returns transaction execution result.- Throws:
IllegalStateException
- if the transaction is not committed yet
-
getLocation
Returns transaction location in the blockchain.- Throws:
IllegalStateException
- if the transaction is not committed yet
-
isCommitted
public boolean isCommitted() -
toString
-
equals
-
hashCode
public int hashCode() -
getStatus
Current status of the transaction. -
getMessage
Transaction message.
-