mirror of https://github.com/apache/kafka.git
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:
parent
7697d3b826
commit
bc5b627ebb
|
@ -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 {
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
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;
|
||||
|
@ -25,7 +24,6 @@ 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.
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
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;
|
||||
|
@ -25,7 +24,6 @@ import java.util.Set;
|
|||
/**
|
||||
* Interface representing the subscription metadata for a group member.
|
||||
*/
|
||||
@InterfaceStability.Unstable
|
||||
public interface MemberSubscription {
|
||||
/**
|
||||
* Gets the rack Id if present.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue