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 booleanequals(Object o)Runtime.ExecutionStatusgetExecutionResult()Returns transaction execution result.TransactionLocationgetLocation()Returns transaction location in the blockchain.TransactionMessagegetMessage()Transaction message.TransactionStatusgetStatus()Current status of the transaction.inthashCode()booleanisCommitted()StringtoString()
-
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.
-