mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
107 lines
1.8 KiB
PHP
107 lines
1.8 KiB
PHP
<?php
|
|
|
|
use RdKafka\Exception;
|
|
use RdKafka\Metadata;
|
|
use RdKafka\Topic;
|
|
use RdKafka\TopicConf;
|
|
use RdKafka\TopicPartition;
|
|
|
|
abstract class RdKafka
|
|
{
|
|
/**
|
|
* @param string $broker_list
|
|
*
|
|
* @return int
|
|
*/
|
|
public function addBrokers($broker_list)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param bool $all_topics
|
|
* @param Topic $only_topic
|
|
* @param int $timeout_ms
|
|
*
|
|
* @throws Exception
|
|
* @return Metadata
|
|
*/
|
|
public function getMetadata($all_topics, $only_topic = null, $timeout_ms)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getOutQLen()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param string $topic_name
|
|
* @param TopicConf $topic_conf
|
|
*
|
|
* @return Topic
|
|
*/
|
|
public function newTopic($topic_name, TopicConf $topic_conf = null)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param int $timeout_ms
|
|
*
|
|
* @return void
|
|
*/
|
|
public function poll($timeout_ms)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param int $level
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setLogLevel($level)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param TopicPartition[] $topicPartitions
|
|
* @param int $timeout_ms
|
|
*
|
|
* @return TopicPartition[]
|
|
*/
|
|
public function offsetsForTimes(array $topicPartitions, int $timeout_ms)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param string $topic
|
|
* @param int $partition
|
|
* @param int $low
|
|
* @param int $high
|
|
* @param int $timeout_ms
|
|
*
|
|
* @return void
|
|
*/
|
|
public function queryWatermarkOffsets(string $topic, int $partition, int &$low, int &$high, int $timeout_ms)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param int $purge_flags
|
|
*
|
|
* @return int
|
|
*/
|
|
public function purge(int $purge_flags)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param int $timeout_ms
|
|
*
|
|
* @return int
|
|
*/
|
|
public function flush(int $timeout_ms)
|
|
{
|
|
}
|
|
}
|