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

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

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

package org.hyperledger.fabric.client;

import org.hyperledger.fabric.protos.peer.BlockAndPrivateData;

/**
 * A Fabric Gateway call to obtain block and private data events. Supports off-line signing flow using
 * {@link Gateway#newSignedBlockAndPrivateDataEventsRequest(byte[], byte[])}.
 */
public interface BlockAndPrivateDataEventsRequest extends EventsRequest {
    /**
     * Builder used to create a new block and private data events request. The default behavior is to read events from
     * the next committed block.
     */
    interface Builder extends EventsBuilder {
        @Override
        Builder startBlock(long blockNumber);

        @Override
        Builder checkpoint(Checkpoint checkpoint);

        @Override
        BlockAndPrivateDataEventsRequest build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy