Package com.exonum.client.response
Class TransactionResponse
java.lang.Object
com.exonum.client.response.TransactionResponse
public final class TransactionResponse
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description TransactionResponse(TransactionStatus status, com.exonum.binding.common.message.TransactionMessage message, com.exonum.messages.core.runtime.Errors.ExecutionStatus executionResult, com.exonum.binding.common.blockchain.TransactionLocation location) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)com.exonum.messages.core.runtime.Errors.ExecutionStatusgetExecutionResult()Returns transaction execution result.com.exonum.binding.common.blockchain.TransactionLocationgetLocation()Returns transaction location in the blockchain.com.exonum.binding.common.message.TransactionMessagegetMessage()Transaction message.TransactionStatusgetStatus()Current status of the transaction.inthashCode()booleanisCommitted()java.lang.StringtoString()
-
Constructor Details
-
TransactionResponse
public TransactionResponse(TransactionStatus status, com.exonum.binding.common.message.TransactionMessage message, com.exonum.messages.core.runtime.Errors.ExecutionStatus executionResult, com.exonum.binding.common.blockchain.TransactionLocation location)
-
-
Method Details
-
getExecutionResult
public com.exonum.messages.core.runtime.Errors.ExecutionStatus getExecutionResult()Returns transaction execution result.- Throws:
java.lang.IllegalStateException- if the transaction is not committed yet
-
getLocation
public com.exonum.binding.common.blockchain.TransactionLocation getLocation()Returns transaction location in the blockchain.- Throws:
java.lang.IllegalStateException- if the transaction is not committed yet
-
isCommitted
public boolean isCommitted() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
getStatus
Current status of the transaction. -
getMessage
public com.exonum.binding.common.message.TransactionMessage getMessage()Transaction message.
-