Interface ResponseBuilder<Request extends TransactionRequest<Response>,Response extends TransactionResponse>

Type Parameters:
Response - the type of the response of the transaction
All Known Implementing Classes:
io.hotmoka.local.internal.transactions.AbstractResponseBuilder, InitialResponseBuilder, NonInitialResponseBuilder

public interface ResponseBuilder<Request extends TransactionRequest<Response>,Response extends TransactionResponse>
The creator of a response from a request. It executes a transaction from the request and builds the corresponding response.
  • Method Summary

    Modifier and Type
    Method
    Description
    Yields the class loader used to build the response.
    Yield the request for which this builder was created.
    Yields the response corresponding to the request for which this builder was created.
    void
    Replaces all reverified responses into the store of the node for which the response is built.
  • Method Details

    • getRequest

      Request getRequest()
      Yield the request for which this builder was created.
      Returns:
      the request
    • getResponse

      Yields the response corresponding to the request for which this builder was created.
      Returns:
      the response
      Throws:
      TransactionRejectedException - if the response could not be created
    • replaceReverifiedResponses

      void replaceReverifiedResponses()
      Replaces all reverified responses into the store of the node for which the response is built.
    • getClassLoader

      EngineClassLoader getClassLoader()
      Yields the class loader used to build the response.
      Returns:
      the class loader