Module io.hotmoka.node.local
Package io.hotmoka.node.local
Class AbstractNonInitialResponseBuilder<Request extends NonInitialTransactionRequest<Response>,Response extends NonInitialTransactionResponse>
java.lang.Object
io.hotmoka.node.local.internal.transactions.AbstractResponseBuilder<Request,Response>
io.hotmoka.node.local.internal.NonInitialResponseBuilderImpl<Request,Response>
io.hotmoka.node.local.AbstractNonInitialResponseBuilder<Request,Response>
- Type Parameters:
Request- the type of the request of the transactionResponse- the type of the response of the transaction
- All Implemented Interfaces:
ResponseBuilder<Request,Response>
public abstract class AbstractNonInitialResponseBuilder<Request extends NonInitialTransactionRequest<Response>,Response extends NonInitialTransactionResponse>
extends io.hotmoka.node.local.internal.NonInitialResponseBuilderImpl<Request,Response>
Partial implementation of the creator of the response for a non-initial transaction.
Non-initial transactions consume gas, have a payer, a nonce, a chain identifier and are signed.
The constructor of this class checks the validity of all these elements.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThe creator of the response from the request. -
Field Summary
Fields inherited from class io.hotmoka.node.local.internal.NonInitialResponseBuilderImpl
gasCostModelFields inherited from class io.hotmoka.node.local.internal.transactions.AbstractResponseBuilder
classLoader, consensus, node, reference, request, storageTypeToClass -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractNonInitialResponseBuilder(TransactionReference reference, Request request, io.hotmoka.node.local.internal.NodeInternal node) Creates a the builder of the response. -
Method Summary
Methods inherited from class io.hotmoka.node.local.internal.NonInitialResponseBuilderImpl
gasForStoringFailedResponse, getPayerFromRequest, ignoreGasPrice, isView, minimalGasRequiredForTransaction, mkClassLoader, transactionIsSignedMethods inherited from class io.hotmoka.node.local.internal.transactions.AbstractResponseBuilder
getClassLoader, getRequest, replaceReverifiedResponses, wrapAsTransactionRejectedExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.hotmoka.node.local.api.ResponseBuilder
getResponse
-
Constructor Details
-
AbstractNonInitialResponseBuilder
protected AbstractNonInitialResponseBuilder(TransactionReference reference, Request request, io.hotmoka.node.local.internal.NodeInternal node) throws TransactionRejectedException Creates a the builder of the response.- Parameters:
reference- the reference to the transaction that is building the responserequest- the request of the transactionnode- the node that is creating the response- Throws:
TransactionRejectedException- if the builder cannot be built
-