org.joyqueue.broker.kafka.model.ProducePartitionGroupRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joyqueue-broker-kafka Show documentation
Show all versions of joyqueue-broker-kafka Show documentation
Kafka protocol support library
The newest version!
/**
* Copyright 2019 The JoyQueue Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.joyqueue.broker.kafka.model;
import org.joyqueue.broker.kafka.message.KafkaBrokerMessage;
import org.joyqueue.message.BrokerMessage;
import java.util.List;
import java.util.Map;
/**
* ProducePartitionGroupRequest
*
* author: gaohaoxiang
* date: 2019/4/9
*/
public class ProducePartitionGroupRequest {
private List partitions;
private List messages;
private List kafkaMessages;
private Map> messageMap;
private Map> kafkaMessageMap;
public ProducePartitionGroupRequest() {
}
public ProducePartitionGroupRequest(List partitions, List messages, List kafkaMessages,
Map> messageMap, Map> kafkaMessageMap) {
this.partitions = partitions;
this.messages = messages;
this.kafkaMessages = kafkaMessages;
this.messageMap = messageMap;
this.kafkaMessageMap = kafkaMessageMap;
}
public void setPartitions(List partitions) {
this.partitions = partitions;
}
public List getPartitions() {
return partitions;
}
public void setMessages(List messages) {
this.messages = messages;
}
public List getMessages() {
return messages;
}
public void setKafkaMessageMap(Map> kafkaMessageMap) {
this.kafkaMessageMap = kafkaMessageMap;
}
public List getKafkaMessages() {
return kafkaMessages;
}
public void setMessageMap(Map> messageMap) {
this.messageMap = messageMap;
}
public Map> getMessageMap() {
return messageMap;
}
public void setKafkaMessages(List kafkaMessages) {
this.kafkaMessages = kafkaMessages;
}
public Map> getKafkaMessageMap() {
return kafkaMessageMap;
}
@Override
public String toString() {
return "ProducePartitionGroupRequest{" +
"partitions=" + partitions +
", messages=" + messages +
", kafkaMessages=" + kafkaMessages +
", messageMap=" + messageMap +
", kafkaMessageMap=" + kafkaMessageMap +
'}';
}
}