Метод | Описание | |
---|---|---|
__construct ( kafka\ClusterMetaData $metadata ) | __construct | |
freeStream ( string $key ) : void | free stream pool | |
getBrokers ( ) : array | get broker server | |
getHostByPartition ( string $topicName, integer $partitionId ) : string | get broker host by topic partition | |
getStream ( string $host, null $lockKey = null ) : array | get broker broker connect | |
getStreamOption ( $name ) : mixed | ||
getTopicDetail ( string $topicName ) : array | get topic detail info | |
getZooKeeper ( ) : |
get kafka zookeeper object | |
setStreamOption ( $name, $value ) | ||
setStreamOptions ( array $options = [] ) | update stream options |
Метод | Описание | |
---|---|---|
updateStreamOptions ( ) |
public __construct ( kafka\ClusterMetaData $metadata ) | ||
$metadata | kafka\ClusterMetaData |
public freeStream ( string $key ) : void | ||
$key | string | |
Результат | void |
public getStreamOption ( $name ) : mixed | ||
$name | - name of option | |
Результат | mixed |
public getTopicDetail ( string $topicName ) : array | ||
$topicName | string | |
Результат | array |
public getZooKeeper ( ) : |
||
Результат |
public setStreamOption ( $name, $value ) | ||
$name | - name of stream option | |
$value | - value for option |
public setStreamOptions ( array $options = [] ) | ||
$options | array |