MINOR: Mark KIP-848's public apis as stable (#18235)

KIP-848 will be release as GA in Apache Kafka 4.0. Hence we need to mark all the related public apis as stable.

Reviewers: Jeff Kim <jeff.kim@confluent.io>
This commit is contained in:
David Jacot 2024-12-17 20:02:23 +01:00 committed by GitHub
parent 7697d3b826
commit bc5b627ebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
22 changed files with 0 additions and 43 deletions

View File

@ -16,14 +16,8 @@
*/ */
package org.apache.kafka.coordinator.group.api.assignor; package org.apache.kafka.coordinator.group.api.assignor;
import org.apache.kafka.common.annotation.InterfaceStability;
/** /**
* Server-side partition assignor for consumer groups used by the GroupCoordinator. * Server-side partition assignor for consumer groups used by the GroupCoordinator.
*
* The new consumer group protocol is in preview so this interface is considered
* unstable until Apache Kafka 4.0.
*/ */
@InterfaceStability.Unstable
public interface ConsumerGroupPartitionAssignor extends PartitionAssignor { public interface ConsumerGroupPartitionAssignor extends PartitionAssignor {
} }

View File

@ -16,15 +16,12 @@
*/ */
package org.apache.kafka.coordinator.group.api.assignor; package org.apache.kafka.coordinator.group.api.assignor;
import org.apache.kafka.common.annotation.InterfaceStability;
import java.util.Map; import java.util.Map;
import java.util.Objects; import java.util.Objects;
/** /**
* The partition assignment for a consumer group. * The partition assignment for a consumer group.
*/ */
@InterfaceStability.Unstable
public class GroupAssignment { public class GroupAssignment {
/** /**
* The member assignments keyed by member id. * The member assignments keyed by member id.

View File

@ -17,14 +17,12 @@
package org.apache.kafka.coordinator.group.api.assignor; package org.apache.kafka.coordinator.group.api.assignor;
import org.apache.kafka.common.Uuid; import org.apache.kafka.common.Uuid;
import org.apache.kafka.common.annotation.InterfaceStability;
import java.util.Collection; import java.util.Collection;
/** /**
* The group metadata specifications required to compute the target assignment. * The group metadata specifications required to compute the target assignment.
*/ */
@InterfaceStability.Unstable
public interface GroupSpec { public interface GroupSpec {
/** /**
* @return All the member Ids of the consumer group. * @return All the member Ids of the consumer group.

View File

@ -17,7 +17,6 @@
package org.apache.kafka.coordinator.group.api.assignor; package org.apache.kafka.coordinator.group.api.assignor;
import org.apache.kafka.common.Uuid; import org.apache.kafka.common.Uuid;
import org.apache.kafka.common.annotation.InterfaceStability;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
@ -25,7 +24,6 @@ import java.util.Set;
/** /**
* The partition assignment for a consumer group member. * The partition assignment for a consumer group member.
*/ */
@InterfaceStability.Unstable
public interface MemberAssignment { public interface MemberAssignment {
/** /**
* @return The assigned partitions keyed by topic Ids. * @return The assigned partitions keyed by topic Ids.

View File

@ -17,7 +17,6 @@
package org.apache.kafka.coordinator.group.api.assignor; package org.apache.kafka.coordinator.group.api.assignor;
import org.apache.kafka.common.Uuid; import org.apache.kafka.common.Uuid;
import org.apache.kafka.common.annotation.InterfaceStability;
import java.util.Optional; import java.util.Optional;
import java.util.Set; import java.util.Set;
@ -25,7 +24,6 @@ import java.util.Set;
/** /**
* Interface representing the subscription metadata for a group member. * Interface representing the subscription metadata for a group member.
*/ */
@InterfaceStability.Unstable
public interface MemberSubscription { public interface MemberSubscription {
/** /**
* Gets the rack Id if present. * Gets the rack Id if present.

View File

@ -16,15 +16,9 @@
*/ */
package org.apache.kafka.coordinator.group.api.assignor; package org.apache.kafka.coordinator.group.api.assignor;
import org.apache.kafka.common.annotation.InterfaceStability;
/** /**
* Server-side partition assignor used by the GroupCoordinator. * Server-side partition assignor used by the GroupCoordinator.
*
* The new consumer group protocol is in preview so this interface is considered
* unstable until Apache Kafka 4.0.
*/ */
@InterfaceStability.Unstable
public interface PartitionAssignor { public interface PartitionAssignor {
/** /**
* Unique name for this assignor. * Unique name for this assignor.

View File

@ -17,18 +17,13 @@
package org.apache.kafka.coordinator.group.api.assignor; package org.apache.kafka.coordinator.group.api.assignor;
import org.apache.kafka.common.Uuid; import org.apache.kafka.common.Uuid;
import org.apache.kafka.common.annotation.InterfaceStability;
import java.util.Set; import java.util.Set;
/** /**
* The subscribed topic describer is used by the {@link PartitionAssignor} * The subscribed topic describer is used by the {@link PartitionAssignor}
* to obtain topic and partition metadata of the subscribed topics. * to obtain topic and partition metadata of the subscribed topics.
*
* The interface is kept in an internal module until KIP-848 is fully
* implemented and ready to be released.
*/ */
@InterfaceStability.Unstable
public interface SubscribedTopicDescriber { public interface SubscribedTopicDescriber {
/** /**
* The number of partitions for the given topic Id. * The number of partitions for the given topic Id.

View File

@ -16,12 +16,9 @@
*/ */
package org.apache.kafka.coordinator.group.api.assignor; package org.apache.kafka.coordinator.group.api.assignor;
import org.apache.kafka.common.annotation.InterfaceStability;
/** /**
* The subscription type followed by a consumer group. * The subscription type followed by a consumer group.
*/ */
@InterfaceStability.Unstable
public enum SubscriptionType { public enum SubscriptionType {
/** /**
* A homogeneous subscription type means that all the members * A homogeneous subscription type means that all the members

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupCurrentMemberAssignmentKey", "name": "ConsumerGroupCurrentMemberAssignmentKey",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupCurrentMemberAssignmentValue", "name": "ConsumerGroupCurrentMemberAssignmentValue",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupMemberMetadataKey", "name": "ConsumerGroupMemberMetadataKey",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupMemberMetadataValue", "name": "ConsumerGroupMemberMetadataValue",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupMetadataKey", "name": "ConsumerGroupMetadataKey",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupMetadataValue", "name": "ConsumerGroupMetadataValue",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupPartitionMetadataKey", "name": "ConsumerGroupPartitionMetadataKey",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupPartitionMetadataValue", "name": "ConsumerGroupPartitionMetadataValue",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupRegularExpressionKey", "name": "ConsumerGroupRegularExpressionKey",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupRegularExpressionValue", "name": "ConsumerGroupRegularExpressionValue",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupTargetAssignmentMemberKey", "name": "ConsumerGroupTargetAssignmentMemberKey",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupTargetAssignmentMemberValue", "name": "ConsumerGroupTargetAssignmentMemberValue",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupTargetAssignmentMetadataKey", "name": "ConsumerGroupTargetAssignmentMetadataKey",

View File

@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{ {
"type": "data", "type": "data",
"name": "ConsumerGroupTargetAssignmentMetadataValue", "name": "ConsumerGroupTargetAssignmentMetadataValue",