-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
authored and
root
committed
Jan 23, 2025
1 parent
a050759
commit ecbe2c2
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
clients/src/main/java/org/apache/kafka/common/requests/AlterShareGroupOffsetsRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.apache.kafka.common.requests; | ||
|
||
import org.apache.kafka.common.message.AlterShareGroupOffsetsRequestData; | ||
import org.apache.kafka.common.protocol.ApiKeys; | ||
import org.apache.kafka.common.protocol.ByteBufferAccessor; | ||
|
||
import java.nio.ByteBuffer; | ||
|
||
public class AlterShareGroupOffsetsRequest extends AbstractRequest { | ||
|
||
private final AlterShareGroupOffsetsRequestData data; | ||
|
||
public AlterShareGroupOffsetsRequest(AlterShareGroupOffsetsRequestData data, short apiVersion) { | ||
super(ApiKeys.ALTER_PARTITION, apiVersion); | ||
this.data = data; | ||
} | ||
|
||
@Override | ||
public AlterShareGroupOffsetsRequestData data() { | ||
return data; | ||
} | ||
|
||
@Override | ||
public AbstractResponse getErrorResponse(int throttleTimeMs, Throwable e) { | ||
return null; | ||
} | ||
|
||
public static AlterShareGroupOffsetsRequest parse(ByteBuffer buffer, short version) { | ||
return new AlterShareGroupOffsetsRequest(new AlterShareGroupOffsetsRequestData(new ByteBufferAccessor(buffer), version), version); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters