setPartition

Description

public function setPartition(int $partition): TopicPartition {}

Set partition of topic partition

Example

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