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.CallInBlock afterTransactions​(int serviceId)
    Creates a call id corresponding to a Service#afterTransactions handler call.
    static Blockchain.CallInBlock beforeTransactions​(int serviceId)
    Creates a call id corresponding to a Service#beforeTransactions handler call.
    static Blockchain.CallInBlock transaction​(int txPosition)
    Creates a call id corresponding to a transaction method call.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • transaction

      public static Blockchain.CallInBlock transaction​(int txPosition)
      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

      public static Blockchain.CallInBlock beforeTransactions​(int serviceId)
      Creates a call id corresponding to a Service#beforeTransactions handler call.
      Parameters:
      serviceId - a numeric identifier of the service which executed 'beforeTransactions'
    • afterTransactions

      public static Blockchain.CallInBlock afterTransactions​(int serviceId)
      Creates a call id corresponding to a Service#afterTransactions handler call.
      Parameters:
      serviceId - a numeric identifier of the service which executed 'afterTransactions'