public final class KafkaMetadata extends com.google.protobuf.GeneratedMessageV3 implements KafkaMetadataOrBuilder
KafkaMetadata is encoded into the ORDERER block to keep track of Kafka-related metadata associated with this block.Protobuf type
orderer.KafkaMetadata
Modifier and Type | Class and Description |
---|---|
static class |
KafkaMetadata.Builder
KafkaMetadata is encoded into the ORDERER block to keep track of
Kafka-related metadata associated with this block.
|
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
LAST_OFFSET_PERSISTED_FIELD_NUMBER |
static int |
LAST_ORIGINAL_OFFSET_PROCESSED_FIELD_NUMBER |
static int |
LAST_RESUBMITTED_CONFIG_OFFSET_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static KafkaMetadata |
getDefaultInstance() |
KafkaMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getLastOffsetPersisted()
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.
|
long |
getLastOriginalOffsetProcessed()
LastOriginalOffsetProcessed is used to keep track of the newest
offset processed if a message is re-validated and re-ordered.
|
long |
getLastResubmittedConfigOffset()
LastResubmittedConfigOffset is used to capture the newest offset of
CONFIG kafka message, which is revalidated and resubmitted.
|
com.google.protobuf.Parser<KafkaMetadata> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
isInitialized() |
static KafkaMetadata.Builder |
newBuilder() |
static KafkaMetadata.Builder |
newBuilder(KafkaMetadata prototype) |
KafkaMetadata.Builder |
newBuilderForType() |
static KafkaMetadata |
parseDelimitedFrom(InputStream input) |
static KafkaMetadata |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KafkaMetadata |
parseFrom(byte[] data) |
static KafkaMetadata |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KafkaMetadata |
parseFrom(ByteBuffer data) |
static KafkaMetadata |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KafkaMetadata |
parseFrom(com.google.protobuf.ByteString data) |
static KafkaMetadata |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KafkaMetadata |
parseFrom(com.google.protobuf.CodedInputStream input) |
static KafkaMetadata |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KafkaMetadata |
parseFrom(InputStream input) |
static KafkaMetadata |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<KafkaMetadata> |
parser() |
KafkaMetadata.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
findInitializationErrors, getInitializationErrorString, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int LAST_OFFSET_PERSISTED_FIELD_NUMBER
public static final int LAST_ORIGINAL_OFFSET_PROCESSED_FIELD_NUMBER
public static final int LAST_RESUBMITTED_CONFIG_OFFSET_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public long getLastOffsetPersisted()
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"];
getLastOffsetPersisted
in interface KafkaMetadataOrBuilder
public long getLastOriginalOffsetProcessed()
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"];
getLastOriginalOffsetProcessed
in interface KafkaMetadataOrBuilder
public long getLastResubmittedConfigOffset()
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"];
getLastResubmittedConfigOffset
in interface KafkaMetadataOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static KafkaMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static KafkaMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static KafkaMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static KafkaMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static KafkaMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static KafkaMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static KafkaMetadata parseFrom(InputStream input) throws IOException
IOException
public static KafkaMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static KafkaMetadata parseDelimitedFrom(InputStream input) throws IOException
IOException
public static KafkaMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static KafkaMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static KafkaMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public KafkaMetadata.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static KafkaMetadata.Builder newBuilder()
public static KafkaMetadata.Builder newBuilder(KafkaMetadata prototype)
public KafkaMetadata.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static KafkaMetadata getDefaultInstance()
public static com.google.protobuf.Parser<KafkaMetadata> parser()
public com.google.protobuf.Parser<KafkaMetadata> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public KafkaMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.