Package org.apache.kafka.clients.admin
Class ClusterLinkListing
java.lang.Object
org.apache.kafka.clients.admin.ClusterLinkListing
A listing of a cluster that's linked.
-
Constructor Summary
ConstructorsConstructorDescriptionClusterLinkListing
(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Optional<Collection<String>> topics, ClusterLinkError clusterLinkError, String linkErrorMessage, ClusterLinkDescription.LinkState linkState) Creates a cluster link listing. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The linked cluster's ID, or null if none.The Uuid of the cluster link that uniquely represents this cluster link.boolean
int
hashCode()
linkName()
The link name for the cluster link.topics()
The topics that are linked with the cluster link, otherwise if empty, then the topics weren't requested.toString()
-
Constructor Details
-
ClusterLinkListing
public ClusterLinkListing(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Optional<Collection<String>> topics, ClusterLinkError clusterLinkError, String linkErrorMessage, ClusterLinkDescription.LinkState linkState) Creates a cluster link listing.- Parameters:
linkName
- The link name for the cluster linklinkId
- The Uuid that uniquely identifies this cluster linkremoteClusterId
- linked cluster's ID, or null if not known.localClusterId
- Local cluster id.topics
- The topics that are linked with the cluster link, otherwise if none, then the topics weren't requested.clusterLinkError
- The reason for why a link is unavailable, if it is in fact unavailable.linkErrorMessage
- Error message describing why a link is unavailable, if it is in fact unavailable.linkState
- State of link
-
-
Method Details
-
linkName
The link name for the cluster link. -
clusterLinkId
The Uuid of the cluster link that uniquely represents this cluster link. -
clusterId
The linked cluster's ID, or null if none. Note that this method will be deprecated soon, useremoteClusterId()
-
remoteClusterId
-
localClusterId
-
available
public boolean available()- Returns:
- whether the link is available or not.
-
linkErrorMessage
-
clusterLinkError
-
topics
The topics that are linked with the cluster link, otherwise if empty, then the topics weren't requested. -
linkState
- Returns:
- state of the link.
-
equals
-
hashCode
public int hashCode() -
toString
-