public class ModifyGroupOffsetsRequest extends AbstractModel
Constructor and Description |
---|
ModifyGroupOffsetsRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getGroup()
Get Kafka consumer group
|
String |
getInstanceId()
Get Kafka instance ID
|
Long |
getOffset()
Get Position of the offset that needs to be reset.
|
Long |
getShift()
Get When `strategy` is 0, this field is required.
|
Long |
getShiftTimestamp()
Get Unit: ms.
|
Long |
getStrategy()
Get Offset resetting policy.
|
String[] |
getTopics()
Get Indicates the topics to be reset.
|
void |
setGroup(String Group)
Set Kafka consumer group
|
void |
setInstanceId(String InstanceId)
Set Kafka instance ID
|
void |
setOffset(Long Offset)
Set Position of the offset that needs to be reset.
|
void |
setShift(Long Shift)
Set When `strategy` is 0, this field is required.
|
void |
setShiftTimestamp(Long ShiftTimestamp)
Set Unit: ms.
|
void |
setStrategy(Long Strategy)
Set Offset resetting policy.
|
void |
setTopics(String[] Topics)
Set Indicates the topics to be reset.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Kafka instance IDpublic String getGroup()
public void setGroup(String Group)
Group
- Kafka consumer grouppublic Long getStrategy()
public void setStrategy(Long Strategy)
Strategy
- Offset resetting policy. Meanings of the input parameters: 0: equivalent to the `shift-by` parameter, which indicates to shift the offset forward or backward by the value of the `shift`. 1: equivalent to `by-duration`, `to-datetime`, `to-earliest`, or `to-latest`, which indicates to move the offset to the specified timestamp. 2: equivalent to `to-offset`, which indicates to move the offset to the specified offset positionpublic String[] getTopics()
public void setTopics(String[] Topics)
Topics
- Indicates the topics to be reset. If this parameter is left empty, all topics will be resetpublic Long getShift()
public void setShift(Long Shift)
Shift
- When `strategy` is 0, this field is required. If it is above zero, the offset will be shifted backward by the value of the `shift`. If it is below zero, the offset will be shifted forward by the value of the `shift`. After a correct reset, the new offset should be (old_offset + shift). Note that if the new offset is smaller than the `earliest` parameter of the partition, it will be set to `earliest`, and if it is greater than the `latest` parameter of the partition, it will be set to `latest`public Long getShiftTimestamp()
public void setShiftTimestamp(Long ShiftTimestamp)
ShiftTimestamp
- Unit: ms. When `strategy` is 1, this field is required, where -2 indicates to reset the offset to the initial position, -1 indicates to reset to the latest position (equivalent to emptying), and other values represent the specified time, i.e., the offset of the topic at the specified time will be obtained and then reset. Note that if there is no message at the specified time, the last offset will be obtainedpublic Long getOffset()
public void setOffset(Long Offset)
Offset
- Position of the offset that needs to be reset. When `strategy` is 2, this field is requiredCopyright © 2020. All rights reserved.