org.hyperledger.fabric.protos.orderer.KafkaMetadataOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-protos Show documentation
Show all versions of fabric-protos Show documentation
PROTO library for fabric-protos
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: orderer/kafka.proto
package org.hyperledger.fabric.protos.orderer;
public interface KafkaMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:orderer.KafkaMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* LastOffsetPersisted is the encoded value for the Metadata message
* which is encoded in the ORDERER block metadata index for the case
* of the Kafka-based orderer.
*
*
* int64 last_offset_persisted = 1 [json_name = "lastOffsetPersisted"];
* @return The lastOffsetPersisted.
*/
long getLastOffsetPersisted();
/**
*
* LastOriginalOffsetProcessed is used to keep track of the newest
* offset processed if a message is re-validated and re-ordered.
* This value is used to deduplicate re-submitted messages from
* multiple orderer so that we don't bother re-processing it again.
*
*
* int64 last_original_offset_processed = 2 [json_name = "lastOriginalOffsetProcessed"];
* @return The lastOriginalOffsetProcessed.
*/
long getLastOriginalOffsetProcessed();
/**
*
* LastResubmittedConfigOffset is used to capture the newest offset of
* CONFIG kafka message, which is revalidated and resubmitted. By comparing
* this with LastOriginalOffsetProcessed, we could detemine whether there
* are still CONFIG messages that have been resubmitted but NOT processed
* yet. It's used as condition to block ingress messages, so we could reduce
* the overhead of repeatedly resubmitting messages as config seq keeps
* advancing.
*
*
* int64 last_resubmitted_config_offset = 3 [json_name = "lastResubmittedConfigOffset"];
* @return The lastResubmittedConfigOffset.
*/
long getLastResubmittedConfigOffset();
}