public class ClusterLinkDescription extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClusterLinkDescription.ConnectionMode |
static class |
ClusterLinkDescription.LinkMode |
static class |
ClusterLinkDescription.LinkState |
Constructor and Description |
---|
ClusterLinkDescription(String linkName,
Uuid linkId,
String remoteClusterId,
String localClusterId,
Collection<String> topics,
ClusterLinkDescription.LinkState linkState,
ClusterLinkDescription.LinkMode linkMode,
ClusterLinkDescription.ConnectionMode connectionMode)
Creates a cluster link description.
|
Modifier and Type | Method and Description |
---|---|
Uuid |
clusterLinkId() |
ClusterLinkDescription.ConnectionMode |
connectionMode()
Connection mode.
|
boolean |
equals(Object o) |
int |
hashCode() |
ClusterLinkDescription.LinkMode |
linkMode()
Link mode.
|
String |
linkName()
The link name for the cluster link.
|
ClusterLinkDescription.LinkState |
linkState() |
String |
localClusterId() |
String |
remoteClusterId() |
Optional<Collection<String>> |
topics()
The topics that are linked with the cluster link, otherwise if empty, then the
topics weren't requested.
|
String |
toString() |
public ClusterLinkDescription(String linkName, Uuid linkId, String remoteClusterId, String localClusterId, Collection<String> topics, ClusterLinkDescription.LinkState linkState, ClusterLinkDescription.LinkMode linkMode, ClusterLinkDescription.ConnectionMode connectionMode)
linkName
- The link name for the cluster linklinkId
- The UUID associated with the 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
null, then the topics weren't requested.linkState
- The link state.linkMode
- The link mode. Can be unknown if link state is failed.connectionMode
- The connection mode. Can be unknown if the link state is failed.public String linkName()
public Uuid clusterLinkId()
public String remoteClusterId()
public String localClusterId()
public Optional<Collection<String>> topics()
public ClusterLinkDescription.LinkState linkState()
public ClusterLinkDescription.LinkMode linkMode()
public ClusterLinkDescription.ConnectionMode connectionMode()