All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.fabric.client.Checkpoint Maven / Gradle / Ivy

/*
 * Copyright 2022 IBM All Rights Reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package org.hyperledger.fabric.client;

import java.util.Optional;
import java.util.OptionalLong;

/**
 * Checkpoint provides the current position for event processing.
 */
public interface Checkpoint {
    /**
     * The block number in which the next event is expected.
     * @return  A ledger block number.
     */
    OptionalLong getBlockNumber();

    /**
     * Transaction Id of the last successfully processed event within the current block.
     * @return A transaction Id.
     */
    Optional getTransactionId();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy