Provides a wrapper around important methods in Kafka's AdminUtils, namely
package |
Default |
---|
__construct()
changeTopicConfig( $arg0, $arg1, $arg2) : void
string
array
callable
close( $arg0) : void
callable
create( $arg0, $arg1, $arg2 = null, $arg3 = null, $arg4 = null) : \io\vertx\jphp\kafka\admin\AdminUtils
param $vertx [Vertx] Vert.x instance to use param $zookeeperHosts [string] comma-separated list of Zookeeper server, e.g. localhost:2181,localhost:2182 create($vertx, $zookeeperHosts)
Create a new AdminUtils instance
param $vertx [Vertx] Vert.x instance to use param $zookeeperHosts [string] comma-separated list of Zookeeper server, e.g. localhost:2181,localhost:2182 param $autoClose [boolean] If set to true, the client will auto-close the connection after a command create($vertx, $zookeeperHosts, $autoClose)
Create a new AdminUtils instance
param $vertx [Vertx] Vert.x instance to use param $zookeeperHosts [string] comma-separated list of Zookeeper server, e.g. localhost:2181,localhost:2182 param $connectionTimeoutMs [integer] Maximum time in ms to wait for the client to connect to Zookeeper param $isSecure [boolean] If set to true, ZkUtils will perform security checks, i.e. ACL checks param $autoClose [boolean] If set to true, the client will auto-close the connection after a command create($vertx, $zookeeperHosts, $connectionTimeoutMs, $isSecure, $autoClose)
Vertx
string
boolean | integer
boolean
boolean
\io\vertx\jphp\kafka\admin\AdminUtils
an instance of the AdminUtilWrapper
createTopic( $arg0, $arg1, $arg2, $arg3, $arg4 = null) : void
param $topicName [string] Name of the to-be-created topic param $partitionCount [integer] Number of partitions param $replicationFactor [integer] Number of replicates. Must be lower or equal to the number of available Brokers param $completionHandler [callable] vert.x callback createTopic($topicName, $partitionCount, $replicationFactor, $completionHandler)
Creates a new Kafka topic on all Brokers managed by the given Zookeeper instance(s). In contrast to @see @see \io\vertx\jphp\kafka\admin\AdminUtils::createTopic, one can pass in additional configuration parameters as a map (String -> String).
param $topicName [string] Name of the to-be-created topic param $partitionCount [integer] Number of partitions param $replicationFactor [integer] Number of replicates. Must be lower or equal to the number of available Brokers param $topicConfig [array] map with additional topic configuration parameters param $completionHandler [callable] vert.x callback createTopic($topicName, $partitionCount, $replicationFactor, $topicConfig, $completionHandler)
string
integer
integer
callable | array
callable
deleteTopic( $arg0, $arg1) : void
string
callable
topicExists( $arg0, $arg1) : void
string
callable