public class ConsumerGroup extends Object implements Serializable
| Constructor and Description |
|---|
ConsumerGroup(String consumerGroupName,
int timeout,
boolean inOrder) |
| Modifier and Type | Method and Description |
|---|---|
String |
getConsumerGroupName() |
int |
getTimeout() |
boolean |
isInOrder() |
void |
setConsumerGroupName(String consumerGroupName) |
void |
setInOrder(boolean inOrder) |
void |
setTimeout(int timeout) |
com.alibaba.fastjson.JSONObject |
ToRequestJson() |
String |
ToRequestString() |
String |
toString() |
public ConsumerGroup(String consumerGroupName, int timeout, boolean inOrder)
consumerGroupName - consumer group nametimeout - if the time interval of a consumer's heartbeat exceed this value in second, the consumer will be deleted.inOrder - consume data in oder or notpublic String getConsumerGroupName()
public void setConsumerGroupName(String consumerGroupName)
public int getTimeout()
public void setTimeout(int timeout)
public boolean isInOrder()
public void setInOrder(boolean inOrder)
public com.alibaba.fastjson.JSONObject ToRequestJson()
public String ToRequestString()
Copyright © 2025. All Rights Reserved.