Class CallInBlocks
java.lang.Object
com.exonum.binding.common.blockchain.CallInBlocks
public final class CallInBlocks
extends java.lang.Object
Provides factory methods to concisely create
Blockchain.CallInBlocks.-
Method Summary
Modifier and Type Method Description static Blockchain.CallInBlockafterTransactions(int serviceId)Creates a call id corresponding to aService#afterTransactionshandler call.static Blockchain.CallInBlockbeforeTransactions(int serviceId)Creates a call id corresponding to aService#beforeTransactionshandler call.static Blockchain.CallInBlocktransaction(int txPosition)Creates a call id corresponding to a transaction method call.
-
Method Details
-
transaction
Creates a call id corresponding to a transaction method call.- Parameters:
txPosition- a zero-based position of the transaction in the block- Throws:
java.lang.IndexOutOfBoundsException- if position is negative or greater than 2147483647
-
beforeTransactions
Creates a call id corresponding to aService#beforeTransactionshandler call.- Parameters:
serviceId- a numeric identifier of the service which executed 'beforeTransactions'
-
afterTransactions
Creates a call id corresponding to aService#afterTransactionshandler call.- Parameters:
serviceId- a numeric identifier of the service which executed 'afterTransactions'
-