public class ConsumerGroup extends Object implements Serializable
| 构造器和说明 |
|---|
ConsumerGroup(String consumerGroupName,
int timeout,
boolean inOrder) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getConsumerGroupName() |
int |
getTimeout() |
boolean |
isInOrder() |
void |
setConsumerGroupName(String consumerGroupName) |
void |
setInOrder(boolean inOrder) |
void |
setTimeout(int timeout) |
net.sf.json.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 net.sf.json.JSONObject ToRequestJson()
public String ToRequestString()
Copyright © 2016. All Rights Reserved.