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.CallInBlock
s.-
Method Summary
Modifier and Type Method Description static Blockchain.CallInBlock
afterTransactions(int serviceId)
Creates a call id corresponding to aService#afterTransactions
handler call.static Blockchain.CallInBlock
beforeTransactions(int serviceId)
Creates a call id corresponding to aService#beforeTransactions
handler call.static Blockchain.CallInBlock
transaction(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#beforeTransactions
handler call.- Parameters:
serviceId
- a numeric identifier of the service which executed 'beforeTransactions'
-
afterTransactions
Creates a call id corresponding to aService#afterTransactions
handler call.- Parameters:
serviceId
- a numeric identifier of the service which executed 'afterTransactions'
-