Class BlockCommittedEventImpl

java.lang.Object
com.exonum.binding.core.service.BlockCommittedEventImpl
All Implemented Interfaces:
BlockCommittedEvent

public abstract class BlockCommittedEventImpl
extends java.lang.Object
implements BlockCommittedEvent
  • Constructor Summary

    Constructors 
    Constructor Description
    BlockCommittedEventImpl()  
  • Method Summary

    Modifier and Type Method Description
    abstract long getHeight()
    Returns the current blockchain height, which is the height of the last committed block.
    abstract BlockchainData getSnapshot()
    Returns the current database snapshot for the executing service.
    abstract java.util.OptionalInt getValidatorId()
    If this node is a validator, returns its identifier.
    static BlockCommittedEventImpl valueOf​(BlockchainData snapshot, java.util.OptionalInt validatorId, long height)
    Creates a new block committed event.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait