setTopicName

Description

public function setTopicName(string $topicName): TopicPartition {}

Set topic name of topic partition

Example

$topicPartition = new SimpleKafkaClient\TopicPartiton('test-topic', 0);
$topicPartition->setTopicName('another-test-topic');