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
    boolean equals​(java.lang.Object o)  
    com.exonum.messages.core.runtime.Errors.ExecutionStatus getExecutionResult()
    Returns transaction execution result.
    com.exonum.binding.common.blockchain.TransactionLocation getLocation()
    Returns transaction location in the blockchain.
    com.exonum.binding.common.message.TransactionMessage getMessage()
    Transaction message.
    TransactionStatus getStatus()
    Current status of the transaction.
    int hashCode()  
    boolean isCommitted()
    Returns true when the transaction is committed to the blockchain; or false — otherwise.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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()
      Returns true when the transaction is committed to the blockchain; or false — otherwise.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • getStatus

      public TransactionStatus getStatus()
      Current status of the transaction.
    • getMessage

      public com.exonum.binding.common.message.TransactionMessage getMessage()
      Transaction message.