Skip to content

Class NewTopic

Class \RdKafka\Admin\NewTopic

Methods

__construct()

public __construct ( 
    string $name, 
    int $num_partitions, 
    int $replication_factor
 ): 
Parameters
name string
num_partitions int
replication_factor int

__destruct()

public __destruct (  ): 

getCData()

public getCData (  ): \FFI\CData
Returns
\FFI\CData

setConfig()

public setConfig ( 
    string $name, 
    string $value
 ): void
Parameters
name string
value string

setReplicaAssignment()

public setReplicaAssignment ( 
    int $partition_id, 
    array $broker_ids
 ): void
Parameters
partition_id int
broker_ids array

Test Coverage 💛

  • 💛 Lines: 85.37% (35 / 41)
  • ❤️ Methods: 20% (1 / 5)