Skip to content

Class Partition

Class \RdKafka\Metadata\Partition

Methods

__construct()

public __construct ( 
    int $id, 
    int $err, 
    int $leader, 
    \RdKafka\Metadata\Collection $replicas, 
    \RdKafka\Metadata\Collection $isrs
 ): 
Parameters
id int
err int
leader int
replicas \RdKafka\Metadata\Collection
isrs \RdKafka\Metadata\Collection

getErr()

public getErr (  ): int
Returns
int

getId()

public getId (  ): int
Returns
int

getIsrs()

public getIsrs (  ): \RdKafka\Metadata\Collection
Returns
\RdKafka\Metadata\Collection

getLeader()

public getLeader (  ): int
Returns
int

getReplicas()

public getReplicas (  ): \RdKafka\Metadata\Collection
Returns
\RdKafka\Metadata\Collection

Test Coverage 💛

  • 💛 Lines: 90% (9 / 10)
  • 💛 Methods: 83.33% (5 / 6)