Class ReplicationFactorChangeResource
java.lang.Object
io.confluent.kafkarest.resources.v3.ReplicationFactorChangeResource
@Path("/v3/clusters/{clusterId}/topics/-")
public final class ReplicationFactorChangeResource
extends Object
The three replication factor change endpoints, all acting on the same topic-level resource:
PATCH .../topics/-/replication-factor-changessubmits a change,PATCH .../topics/-/replication-factor-changes:cancelcancels one,GET .../topics/-/replication-factor-changeslists the tracked changes.
-
Constructor Summary
ConstructorsConstructorDescriptionReplicationFactorChangeResource(jakarta.inject.Provider<ReplicationFactorChangeManager> replicationFactorChangeManager, io.confluent.kafkarest.response.CrnFactory crnFactory, io.confluent.kafkarest.response.UrlFactory urlFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelReplicationFactorChange(jakarta.ws.rs.container.AsyncResponse asyncResponse, String clusterId, @Valid CancelReplicationFactorChangeRequest request) voidchangeReplicationFactor(jakarta.ws.rs.container.AsyncResponse asyncResponse, String clusterId, @Valid ChangeReplicationFactorRequest request) voidlistReplicationFactorChanges(jakarta.ws.rs.container.AsyncResponse asyncResponse, String clusterId)
-
Constructor Details
-
ReplicationFactorChangeResource
@Inject public ReplicationFactorChangeResource(jakarta.inject.Provider<ReplicationFactorChangeManager> replicationFactorChangeManager, io.confluent.kafkarest.response.CrnFactory crnFactory, io.confluent.kafkarest.response.UrlFactory urlFactory)
-
-
Method Details
-
changeReplicationFactor
@PATCH @Path("/replication-factor-changes") @Produces("application/json") @Consumes("application/json") @PerformanceMetric("v3.topics.replication-factor-changes.change") public void changeReplicationFactor(@Suspended jakarta.ws.rs.container.AsyncResponse asyncResponse, @PathParam("clusterId") String clusterId, @Valid @Valid ChangeReplicationFactorRequest request) -
cancelReplicationFactorChange
@PATCH @Path("/replication-factor-changes:cancel") @Produces("application/json") @Consumes("application/json") @PerformanceMetric("v3.topics.replication-factor-changes.cancel") public void cancelReplicationFactorChange(@Suspended jakarta.ws.rs.container.AsyncResponse asyncResponse, @PathParam("clusterId") String clusterId, @Valid @Valid CancelReplicationFactorChangeRequest request) -
listReplicationFactorChanges
@GET @Path("/replication-factor-changes") @Produces("application/json") @PerformanceMetric("v3.topics.replication-factor-changes.list") public void listReplicationFactorChanges(@Suspended jakarta.ws.rs.container.AsyncResponse asyncResponse, @PathParam("clusterId") String clusterId)
-