PHP Interface Kafka\ClusterMetaData

Author: [email protected] +------------------------------------------------------------------------------
Exibir arquivo Open project: nmred/kafka-php Interface Usage Examples

Public Methods

Method Description
getPartitionState ( string $topicName, integer $partitionId ) : array
getTopicDetail ( string $topicName ) : array
listBrokers ( ) : array get broker list from kafka metadata
refreshMetadata ( ) : null

Method Details

getPartitionState() public method

public getPartitionState ( string $topicName, integer $partitionId ) : array
$topicName string
$partitionId integer
return array

getTopicDetail() public method

public getTopicDetail ( string $topicName ) : array
$topicName string
return array

listBrokers() public method

get broker list from kafka metadata
public listBrokers ( ) : array
return array

refreshMetadata() public method

public refreshMetadata ( ) : null
return null