Extension [ extension #101 simple_kafka_client version 0.1.1 ] { - Functions { Function [ function kafka_get_err_descs ] { - Parameters [0] { } - Return [ array ] } Function [ function kafka_err2str ] { - Parameters [1] { Parameter #0 [ int $errorCode ] } - Return [ string ] } Function [ function kafka_thread_cnt ] { - Parameters [0] { } - Return [ int ] } Function [ function kafka_offset_tail ] { - Parameters [1] { Parameter #0 [ int $offset ] } - Return [ int ] } Function [ function kafka_err2name ] { - Parameters [1] { Parameter #0 [ int $errorCode ] } - Return [ string ] } } - Classes [16] { Class [ abstract class SimpleKafkaClient ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [5] { Method [ public method getMetadata ] { - Parameters [3] { Parameter #0 [ bool $allTopics ] Parameter #1 [ int $timeoutMs ] Parameter #2 [ SimpleKafkaClient\Topic $topic ] } - Return [ SimpleKafkaClient\Metadata ] } Method [ public method getOutQLen ] { - Parameters [0] { } - Return [ int ] } Method [ public method poll ] { - Parameters [1] { Parameter #0 [ int $timeoutMs ] } - Return [ int ] } Method [ public method queryWatermarkOffsets ] { - Parameters [5] { Parameter #0 [ string $topic ] Parameter #1 [ int $partition ] Parameter #2 [ int &$low ] Parameter #3 [ int &$high ] Parameter #4 [ int $timeoutMs ] } - Return [ void ] } Method [ public method offsetsForTimes ] { - Parameters [2] { Parameter #0 [ array $topicPartitions ] Parameter #1 [ int $timeoutMs ] } - Return [ array ] } } } Class [ class SimpleKafkaClient\Producer extends SimpleKafkaClient ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [13] { Method [ public method __construct ] { - Parameters [1] { Parameter #0 [ SimpleKafkaClient\Configuration $configuration ] } } Method [ public method initTransactions ] { - Parameters [1] { Parameter #0 [ int $timeoutMs ] } - Return [ void ] } Method [ public method beginTransaction ] { - Parameters [0] { } - Return [ void ] } Method [ public method commitTransaction ] { - Parameters [1] { Parameter #0 [ int $timeoutMs ] } - Return [ void ] } Method [ public method abortTransaction ] { - Parameters [1] { Parameter #0 [ int $timeoutMs ] } - Return [ void ] } Method [ public method flush ] { - Parameters [1] { Parameter #0 [ int $timeoutMs ] } - Return [ int ] } Method [ public method purge ] { - Parameters [1] { Parameter #0 [ int $purgeFlags ] } - Return [ int ] } Method [ public method getTopicHandle ] { - Parameters [1] { Parameter #0 [ string $topic ] } - Return [ SimpleKafkaClient\ProducerTopic ] } Method [ public method getMetadata ] { - Parameters [3] { Parameter #0 [ bool $allTopics ] Parameter #1 [ int $timeoutMs ] Parameter #2 [ SimpleKafkaClient\Topic $topic ] } - Return [ SimpleKafkaClient\Metadata ] } Method [ public method getOutQLen ] { - Parameters [0] { } - Return [ int ] } Method [ public method poll ] { - Parameters [1] { Parameter #0 [ int $timeoutMs ] } - Return [ int ] } Method [ public method queryWatermarkOffsets ] { - Parameters [5] { Parameter #0 [ string $topic ] Parameter #1 [ int $partition ] Parameter #2 [ int &$low ] Parameter #3 [ int &$high ] Parameter #4 [ int $timeoutMs ] } - Return [ void ] } Method [ public method offsetsForTimes ] { - Parameters [2] { Parameter #0 [ array $topicPartitions ] Parameter #1 [ int $timeoutMs ] } - Return [ array ] } } } Class [ class SimpleKafkaClient\Configuration ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [9] { Method [ public method __construct ] { - Parameters [0] { } } Method [ public method dump ] { - Parameters [0] { } - Return [ array ] } Method [ public method set ] { - Parameters [2] { Parameter #0 [ string $name ] Parameter #1 [ string $value ] } - Return [ void ] } Method [ public method setErrorCb ] { - Parameters [1] { Parameter #0 [ callable $callback ] } - Return [ void ] } Method [ public method setDrMsgCb ] { - Parameters [1] { Parameter #0 [ callable $callback ] } - Return [ void ] } Method [ public method setStatsCb ] { - Parameters [1] { Parameter #0 [ callable $callback ] } - Return [ void ] } Method [ public method setRebalanceCb ] { - Parameters [1] { Parameter #0 [ callable $callback ] } - Return [ void ] } Method [ public method setOffsetCommitCb ] { - Parameters [1] { Parameter #0 [ callable $callback ] } - Return [ void ] } Method [ public method setLogCb ] { - Parameters [1] { Parameter #0 [ callable $callback ] } - Return [ void ] } } } Class [ class SimpleKafkaClient\Exception extends Exception implements Throwable ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [4] { Property [ protected $message ] Property [ protected $code ] Property [ protected $file ] Property [ protected $line ] } - Methods [10] { Method [ public method __construct ] { - Parameters [3] { Parameter #0 [ $message ] Parameter #1 [ $code ] Parameter #2 [ $previous ] } } Method [ public method __wakeup ] { } Method [ final public method getMessage ] { } Method [ final public method getCode ] { } Method [ final public method getFile ] { } Method [ final public method getLine ] { } Method [ final public method getTrace ] { } Method [ final public method getPrevious ] { } Method [ final public method getTraceAsString ] { } Method [ public method __toString ] { } } } Class [ class SimpleKafkaClient\KafkaErrorException extends SimpleKafkaClient\Exception implements Throwable ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [8] { Property [ protected $message ] Property [ protected $code ] Property [ protected $file ] Property [ protected $line ] Property [ private $error_string ] Property [ private $isFatal ] Property [ private $isRetriable ] Property [ private $transactionRequiresAbort ] } - Methods [14] { Method [ public method __construct ] { - Parameters [6] { Parameter #0 [ string $message ] Parameter #1 [ int $code ] Parameter #2 [ string $error_string ] Parameter #3 [ bool $isFatal ] Parameter #4 [ bool $isRetriable ] Parameter #5 [ bool $transactionRequiresAbort ] } } Method [ public method getErrorString ] { - Parameters [0] { } - Return [ string ] } Method [ public method isFatal ] { - Parameters [0] { } - Return [ bool ] } Method [ public method isRetriable ] { - Parameters [0] { } - Return [ bool ] } Method [ public method transactionRequiresAbort ] { - Parameters [0] { } - Return [ bool ] } Method [ public method __wakeup ] { } Method [ final public method getMessage ] { } Method [ final public method getCode ] { } Method [ final public method getFile ] { } Method [ final public method getLine ] { } Method [ final public method getTrace ] { } Method [ final public method getPrevious ] { } Method [ final public method getTraceAsString ] { } Method [ public method __toString ] { } } } Class [ class SimpleKafkaClient\Consumer ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [16] { Method [ public method __construct ] { - Parameters [1] { Parameter #0 [ SimpleKafkaClient\Configuration $configuration ] } } Method [ public method assign ] { - Parameters [1] { Parameter #0 [ array or NULL $topics ] } - Return [ void ] } Method [ public method getAssignment ] { - Parameters [0] { } - Return [ array ] } Method [ public method subscribe ] { - Parameters [1] { Parameter #0 [ array $topics ] } - Return [ void ] } Method [ public method getSubscription ] { - Parameters [0] { } - Return [ array ] } Method [ public method unsubscribe ] { - Parameters [0] { } - Return [ void ] } Method [ public method consume ] { - Parameters [1] { Parameter #0 [ int $timeoutMs ] } - Return [ SimpleKafkaClient\Message ] } Method [ public method commit ] { - Parameters [1] { Parameter #0 [ $messageOrOffsets ] } - Return [ void ] } Method [ public method commitAsync ] { - Parameters [1] { Parameter #0 [ $messageOrOffsets ] } - Return [ void ] } Method [ public method close ] { - Parameters [0] { } - Return [ void ] } Method [ public method getMetadata ] { - Parameters [3] { Parameter #0 [ bool $allTopics ] Parameter #1 [ int $timeoutMs ] Parameter #2 [ SimpleKafkaClient\ConsumerTopic $topic ] } - Return [ SimpleKafkaClient\Metadata ] } Method [ public method getTopicHandle ] { - Parameters [1] { Parameter #0 [ string $topic ] } - Return [ SimpleKafkaClient\ConsumerTopic ] } Method [ public method getCommittedOffsets ] { - Parameters [2] { Parameter #0 [ array $topics ] Parameter #1 [ int $timeoutMs ] } - Return [ array ] } Method [ public method getOffsetPositions ] { - Parameters [1] { Parameter #0 [ array $topics ] } - Return [ array ] } Method [ public method offsetsForTimes ] { - Parameters [2] { Parameter #0 [ array $topicPartitions ] Parameter #1 [ int $timeoutMs ] } - Return [ array ] } Method [ public method queryWatermarkOffsets ] { - Parameters [5] { Parameter #0 [ string $topic ] Parameter #1 [ int $partition ] Parameter #2 [ int &$low ] Parameter #3 [ int &$high ] Parameter #4 [ int $timeoutMs ] } - Return [ void ] } } } Class [ class SimpleKafkaClient\Message ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [9] { Property [ public $err ] Property [ public $topic_name ] Property [ public $timestamp ] Property [ public $partition ] Property [ public $payload ] Property [ public $len ] Property [ public $key ] Property [ public $offset ] Property [ public $headers ] } - Methods [1] { Method [ public method getErrorString ] { - Parameters [0] { } - Return [ string ] } } } Class [ class SimpleKafkaClient\Metadata ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [4] { Method [ public method getOrigBrokerId ] { - Parameters [0] { } - Return [ int ] } Method [ public method getOrigBrokerName ] { - Parameters [0] { } - Return [ string ] } Method [ public method getBrokers ] { - Parameters [0] { } - Return [ SimpleKafkaClient\Metadata\Collection ] } Method [ public method getTopics ] { - Parameters [0] { } - Return [ SimpleKafkaClient\Metadata\Collection ] } } } Class [ class SimpleKafkaClient\Metadata\Topic ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [3] { Method [ public method getName ] { - Parameters [0] { } - Return [ string ] } Method [ public method getErrorCode ] { - Parameters [0] { } - Return [ int ] } Method [ public method getPartitions ] { - Parameters [0] { } - Return [ SimpleKafkaClient\Metadata\Collection ] } } } Class [ class SimpleKafkaClient\Metadata\Broker ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [3] { Method [ public method getId ] { - Parameters [0] { } - Return [ int ] } Method [ public method getHost ] { - Parameters [0] { } - Return [ string ] } Method [ public method getPort ] { - Parameters [0] { } - Return [ int ] } } } Class [ class SimpleKafkaClient\Metadata\Partition ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [5] { Method [ public method getId ] { - Parameters [0] { } - Return [ int ] } Method [ public method getErrorCode ] { - Parameters [0] { } - Return [ int ] } Method [ public method getLeader ] { - Parameters [0] { } - Return [ int ] } Method [ public method getReplicas ] { - Parameters [0] { } - Return [ SimpleKafkaClient\Metadata\Collection ] } Method [ public method getIsrs ] { - Parameters [0] { } - Return [ SimpleKafkaClient\Metadata\Collection ] } } } Class [ class SimpleKafkaClient\Metadata\Collection implements Countable, Iterator, Traversable ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [6] { Method [ public method count ] { - Parameters [0] { } - Return [ int ] } Method [ public method rewind ] { - Parameters [0] { } - Return [ void ] } Method [ public method current ] { - Parameters [0] { } } Method [ public method key ] { - Parameters [0] { } - Return [ int ] } Method [ public method next ] { - Parameters [0] { } } Method [ public method valid ] { - Parameters [0] { } - Return [ bool ] } } } Class [ class SimpleKafkaClient\TopicPartition ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [7] { Method [ public method __construct ] { - Parameters [3] { Parameter #0 [ string $topicName ] Parameter #1 [ int $partition ] Parameter #2 [ $offset ] } } Method [ public method getTopicName ] { - Parameters [0] { } - Return [ string or NULL ] } Method [ public method setTopicName ] { - Parameters [1] { Parameter #0 [ string $topicName ] } - Return [ SimpleKafkaClient\TopicPartition ] } Method [ public method getPartition ] { - Parameters [0] { } - Return [ int ] } Method [ public method setPartition ] { - Parameters [1] { Parameter #0 [ int $partition ] } - Return [ SimpleKafkaClient\TopicPartition ] } Method [ public method getOffset ] { - Parameters [0] { } - Return [ int ] } Method [ public method setOffset ] { - Parameters [1] { Parameter #0 [ int $offset ] } - Return [ SimpleKafkaClient\TopicPartition ] } } } Class [ abstract class SimpleKafkaClient\Topic ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [1] { Method [ public method getName ] { - Parameters [0] { } - Return [ string ] } } } Class [ class SimpleKafkaClient\ConsumerTopic extends SimpleKafkaClient\Topic ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [2] { Method [ private method __construct ] { - Parameters [0] { } } Method [ public method getName ] { - Parameters [0] { } - Return [ string ] } } } Class [ class SimpleKafkaClient\ProducerTopic extends SimpleKafkaClient\Topic ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [4] { Method [ private method __construct ] { - Parameters [0] { } } Method [ public method produce ] { - Parameters [4] { Parameter #0 [ int $partition ] Parameter #1 [ int $msgFlags ] Parameter #2 [ $payload ] Parameter #3 [ $key ] } - Return [ void ] } Method [ public method producev ] { - Parameters [6] { Parameter #0 [ int $partition ] Parameter #1 [ int $msgFlags ] Parameter #2 [ $payload ] Parameter #3 [ $key ] Parameter #4 [ $headers ] Parameter #5 [ $timestampMs ] } - Return [ void ] } Method [ public method getName ] { - Parameters [0] { } - Return [ string ] } } } } }