MCPcopy Create free account
hub / github.com/apache/kafka / empty

Method empty

clients/src/main/java/org/apache/kafka/common/Cluster.java:77–79  ·  view source on GitHub ↗

Create an empty cluster instance with no nodes and no topic-partitions.

()

Source from the content-addressed store, hash-verified

75 * Create an empty cluster instance with no nodes and no topic-partitions.
76 */
77 public static Cluster empty() {
78 return new Cluster(new ArrayList<Node>(0), new ArrayList<PartitionInfo>(0));
79 }
80
81 /**
82 * Create a "bootstrap" cluster using the given list of host/ports

Callers 3

testMetadataMethod · 0.95
MockProducerMethod · 0.95
MetadataMethod · 0.95

Calls

no outgoing calls

Tested by 1

testMetadataMethod · 0.76