Interface LinkManager
public interface LinkManager
A service to manage Kafka links.
-
Method Summary
Modifier and TypeMethodDescriptioncreateLink(String localClusterId, Optional<String> srcClusterId, Optional<String> destClusterId, Optional<String> remoteClusterId, Optional<String> clusterLinkId, String linkName, Map<String, String> configs, boolean validateLink, boolean validateOnly) Creates a new Kafka link.deleteLink(String clusterId, String linkName, boolean force, boolean validateOnly) Deletes the Kafka link with the givenlinkName.Returns the specific Kafka links belonging to theClusterwith the givenclusterIdand the givenlinkName.Returns the list of Kafka links belonging to theClusterwith the givenclusterId.
-
Method Details
-
listLinks
Returns the list of Kafka links belonging to theClusterwith the givenclusterId. -
getLink
-
createLink
CompletableFuture<Void> createLink(String localClusterId, Optional<String> srcClusterId, Optional<String> destClusterId, Optional<String> remoteClusterId, Optional<String> clusterLinkId, String linkName, Map<String, String> configs, boolean validateLink, boolean validateOnly) Creates a new Kafka link. srcClusterId and destClusterId are deprecated and remoteClusterId should be used instead.- Parameters:
localClusterId- the local cluster idsrcClusterId- deprecated. Only relevant when creating link at destination clusterdestClusterId- deprecated. Only relevant when creating link at source clusterremoteClusterId- the remote cluster ID.clusterLinkId- the link id for a source or bi-directional cluster link.
-
deleteLink
CompletableFuture<Void> deleteLink(String clusterId, String linkName, boolean force, boolean validateOnly) Deletes the Kafka link with the givenlinkName.
-