TopicPartitionInfo

A class containing leadership, replicas and ISR information for a topic partition.

package

Default

Methods

TopicPartitionInfo constructor

__construct( $topicPartitionInfo = null) 

Arguments

$topicPartitionInfo

mixed | null

getIsr

getIsr() : array

Response

array

getLeader

getLeader() : \io\vertx\jphp\kafka\client\common\Node

getPartition

getPartition() : integer

Response

integer

getReplicas

getReplicas() : array

Response

array

setIsr

setIsr( $isr) : $this

Arguments

$isr

Node|array

Response

$this

setLeader

setLeader( $leader) : $this

Arguments

$leader

Node|array

Response

$this

setPartition

setPartition( $partition) : $this

Arguments

$partition

integer

Response

$this

setReplicas

setReplicas( $replicas) : $this

Arguments

$replicas

Node|array

Response

$this