Package com.exonum.binding.core.service
Class ExecutionContext.Builder
- java.lang.Object
-
- com.exonum.binding.core.service.ExecutionContext.Builder
-
- Enclosing interface:
- ExecutionContext
public static final class ExecutionContext.Builder extends Object
Transaction context builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionContext.BuilderauthorPk(com.exonum.binding.common.crypto.PublicKey authorPk)Sets transaction author public key for the context.ExecutionContext.BuilderblockchainData(BlockchainData blockchainData)Sets the blockchain data for the context.ExecutionContextbuild()Creates the transaction context instance.ExecutionContext.BuilderserviceId(int serviceId)Sets service id for the context.ExecutionContext.BuilderserviceName(String serviceName)Sets service name for the context.ExecutionContext.BuildertxMessageHash(com.exonum.binding.common.hash.HashCode hash)Sets transaction message hash for the context.
-
-
-
Method Detail
-
blockchainData
public ExecutionContext.Builder blockchainData(BlockchainData blockchainData)
Sets the blockchain data for the context.
-
txMessageHash
public ExecutionContext.Builder txMessageHash(@Nullable com.exonum.binding.common.hash.HashCode hash)
Sets transaction message hash for the context.
-
authorPk
public ExecutionContext.Builder authorPk(@Nullable com.exonum.binding.common.crypto.PublicKey authorPk)
Sets transaction author public key for the context.
-
serviceName
public ExecutionContext.Builder serviceName(String serviceName)
Sets service name for the context.
-
serviceId
public ExecutionContext.Builder serviceId(int serviceId)
Sets service id for the context.
-
build
public ExecutionContext build()
Creates the transaction context instance.
-
-