Ejemplo n.º 1
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     ReplicaId       = reader.ReadInt32();
     MaxWaitTime     = reader.ReadInt32();
     MinBytes        = reader.ReadInt32();
     TopicPartitions = reader.ReadArray <FetchRequestTopicPartition>();
 }
Ejemplo n.º 2
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     ConsumerGroup             = reader.ReadString();
     ConsumerGroupGenerationId = reader.ReadInt32();
     ConsumerId      = reader.ReadString();
     TopicPartitions = reader.ReadArray <OffsetCommitRequestTopicPartitionV1>();
 }
Ejemplo n.º 3
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     GroupId          = reader.ReadString();
     GenerationId     = reader.ReadInt32();
     MemberId         = reader.ReadString();
     GroupAssignments = reader.ReadArray <SyncGroupGroupAssignment>();
 }
Ejemplo n.º 4
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     GroupId        = reader.ReadString();
     SessionTimeout = reader.ReadInt32();
     MemberId       = reader.ReadString();
     ProtocolType   = reader.ReadString();
     GroupProtocols = reader.ReadArray <JoinGroupRequestGroupProtocol>();
 }
Ejemplo n.º 5
0
 public void FetchFrom(KafkaReader reader)
 {
     ErrorCode    = (ErrorCode)reader.ReadInt16();
     GroupId      = reader.ReadString();
     State        = reader.ReadString();
     ProtocolType = reader.ReadString();
     Protocol     = reader.ReadString();
     Members      = reader.ReadArray <DescribeGroupsResponseMember>();
 }
Ejemplo n.º 6
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     ErrorCode     = (ErrorCode)reader.ReadInt16();
     GenerationId  = reader.ReadInt32();
     GroupProtocol = reader.ReadString();
     LeaderId      = reader.ReadString();
     MemberId      = reader.ReadString();
     Members       = reader.ReadArray <JoinGroupResponseMember>();
 }
Ejemplo n.º 7
0
        public void FetchFrom(KafkaReader reader)
        {
            //Version = reader.ReadInt16();
            //PartitionAssignments = reader.ReadArray<SyncGroupPartitionAssignment>();
            //UserData = reader.ReadBytes();

            var memberAssignment = reader.ReadBytes();

            if (memberAssignment == null || memberAssignment.Length == 0)
            {
                return;
            }

            using (var stream = new MemoryStream(memberAssignment))
                using (var reader2 = new KafkaReader(stream)) {
                    Version = reader2.ReadInt16();
                    PartitionAssignments = reader2.ReadArray <SyncGroupPartitionAssignment>();
                    UserData             = reader2.ReadBytes();
                }
        }
Ejemplo n.º 8
0
 public void FetchFrom(KafkaReader reader)
 {
     TopicName = reader.ReadString();
     Details   = reader.ReadArray <OffsetCommitRequestTopicPartitionDetailV1>();
 }
Ejemplo n.º 9
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     ReplicaId       = reader.ReadInt32();
     TopicPartitions = reader.ReadArray <OffsetsRequestTopicPartition>();
 }
Ejemplo n.º 10
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     ErrorCode = (ErrorCode)reader.ReadInt16();
     Groups    = reader.ReadArray <ListGroupsResponseGroup>();
 }
Ejemplo n.º 11
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     Details = reader.ReadArray <DescribeGroupsResponseDetail>();
 }
Ejemplo n.º 12
0
 public void FetchFrom(KafkaReader reader)
 {
     TopicName    = reader.ReadString();
     MessageBodys = reader.ReadArray <MessageBody>();
 }
Ejemplo n.º 13
0
 public void FetchFrom(KafkaReader reader)
 {
     TopicErrorCode     = (ErrorCode)reader.ReadInt16();
     TopicName          = reader.ReadString();
     PartitionMetadatas = reader.ReadArray <PartitionMetadata>();
 }
Ejemplo n.º 14
0
 public void FetchFrom(KafkaReader reader)
 {
     TopicName          = reader.ReadString();
     FetchOffsetDetails = reader.ReadArray <FetchRequestTopicPartitionDetail>();
 }
Ejemplo n.º 15
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     TopicPartitions = reader.ReadArray <OffsetFetchResponseTopicPartition>();
 }
Ejemplo n.º 16
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     RequiredAcks    = (AcknowlegeStrategy)reader.ReadInt16();
     Timeout         = reader.ReadInt32();
     TopicPartitions = reader.ReadArray <ProduceRequestTopicPartition>();
 }
Ejemplo n.º 17
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     ConsumerGroup   = reader.ReadString();
     TopicPartitions = reader.ReadArray <OffsetFetchRequestTopicPartition>();
 }
Ejemplo n.º 18
0
 public void FetchFrom(KafkaReader reader)
 {
     TopicName = reader.ReadString();
     Details   = reader.ReadArray <ProduceRequestTopicDetail>();
 }
Ejemplo n.º 19
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     Brokers = reader.ReadArray(() => new Broker(0, null, 0));
     //Brokers = reader.ReadArray<Broker>();
     TopicMetadatas = reader.ReadArray <TopicMetadata>();
 }
Ejemplo n.º 20
0
 public void FetchFrom(KafkaReader reader)
 {
     TopicName = reader.ReadString();
     Details   = reader.ReadArray <OffsetFetchResponseTopicPartitionDetail>();
 }
Ejemplo n.º 21
0
 public void FetchFrom(KafkaReader reader)
 {
     TopicName        = reader.ReadString();
     PartitionOffsets = reader.ReadArray <OffsetResponsePartitionOffset>();
 }