Skip to content

Commit

Permalink
MINOR: Mark KIP-848's public apis as stable (#18235)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dajac authored Dec 17, 2024
1 parent 7697d3b commit bc5b627
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@
*/
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.
*
* 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 {
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@
*/
package org.apache.kafka.coordinator.group.api.assignor;

import org.apache.kafka.common.annotation.InterfaceStability;

import java.util.Map;
import java.util.Objects;

/**
* The partition assignment for a consumer group.
*/
@InterfaceStability.Unstable
public class GroupAssignment {
/**
* The member assignments keyed by member id.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
package org.apache.kafka.coordinator.group.api.assignor;

import org.apache.kafka.common.Uuid;
import org.apache.kafka.common.annotation.InterfaceStability;

import java.util.Collection;

/**
* The group metadata specifications required to compute the target assignment.
*/
@InterfaceStability.Unstable
public interface GroupSpec {
/**
* @return All the member Ids of the consumer group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
package org.apache.kafka.coordinator.group.api.assignor;

import org.apache.kafka.common.Uuid;
import org.apache.kafka.common.annotation.InterfaceStability;

import java.util.Map;
import java.util.Set;

/**
* The partition assignment for a consumer group member.
*/
@InterfaceStability.Unstable
public interface MemberAssignment {
/**
* @return The assigned partitions keyed by topic Ids.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
package org.apache.kafka.coordinator.group.api.assignor;

import org.apache.kafka.common.Uuid;
import org.apache.kafka.common.annotation.InterfaceStability;

import java.util.Optional;
import java.util.Set;

/**
* Interface representing the subscription metadata for a group member.
*/
@InterfaceStability.Unstable
public interface MemberSubscription {
/**
* Gets the rack Id if present.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@
*/
package org.apache.kafka.coordinator.group.api.assignor;

import org.apache.kafka.common.annotation.InterfaceStability;

/**
* 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 {
/**
* Unique name for this assignor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@
package org.apache.kafka.coordinator.group.api.assignor;

import org.apache.kafka.common.Uuid;
import org.apache.kafka.common.annotation.InterfaceStability;

import java.util.Set;

/**
* The subscribed topic describer is used by the {@link PartitionAssignor}
* 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 {
/**
* The number of partitions for the given topic Id.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
*/
package org.apache.kafka.coordinator.group.api.assignor;

import org.apache.kafka.common.annotation.InterfaceStability;

/**
* The subscription type followed by a consumer group.
*/
@InterfaceStability.Unstable
public enum SubscriptionType {
/**
* A homogeneous subscription type means that all the members
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

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

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

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

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

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

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

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

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

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

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

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

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

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

// KIP-848 is in development. This schema is subject to non-backwards-compatible changes.
{
"type": "data",
"name": "ConsumerGroupTargetAssignmentMetadataValue",
Expand Down

0 comments on commit bc5b627

Please sign in to comment.