Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
updateStreamOptions ( ) |
public __construct ( kafka\ClusterMetaData $metadata ) | ||
$metadata | kafka\ClusterMetaData |
public freeStream ( string $key ) : void | ||
$key | string | |
return | void |
public getStreamOption ( $name ) : mixed | ||
$name | - name of option | |
return | mixed |
public getTopicDetail ( string $topicName ) : array | ||
$topicName | string | |
return | array |
public getZooKeeper ( ) : |
||
return |
public setStreamOption ( $name, $value ) | ||
$name | - name of stream option | |
$value | - value for option |
public setStreamOptions ( array $options = [] ) | ||
$options | array |