Method |
Description |
|
__construct ( $hostList, null $timeout = null ) |
__construct |
|
addPartitionOwner ( string $groupId, string $topicName, integer $partitionId, string $consumerId ) : void |
add partition owner |
|
cancelWatch ( string $path, callable $callback = null ) : boolean | null |
Delete watch callback on a node, delete all callback when $callback is null |
|
getBrokerDetail ( integer $brokerId ) : string | boolean |
get broker detail |
|
getConsumersPerTopic ( string $groupId ) : array |
get consumer per topic |
|
getPartitionState ( string $topicName, integer $partitionId ) : string | boolean |
get partition state |
|
getTopicDetail ( string $topicName ) : string | boolean |
get topic detail |
|
listBrokers ( ) : array |
get broker list using zookeeper |
|
listConsumer ( string $groupId ) : array |
list consumer |
|
refreshMetadata ( ) : null |
Clear internal caches |
|
registerConsumer ( $groupId, integer $consumerId, array $topics = [] ) |
register consumer |
|
watch ( string $path, callable $callback ) : string | null |
Wath a given path |
|
watchCallback ( integer $event_type, integer $stat, string $path ) : the |
Wath event callback warper |
|