133 lines
2.3 KiB
PHP
Executable File
133 lines
2.3 KiB
PHP
Executable File
<?php
|
|
|
|
namespace RdKafka;
|
|
|
|
class KafkaConsumer
|
|
{
|
|
/**
|
|
* @param Conf $conf
|
|
*/
|
|
public function __construct(Conf $conf)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param TopicPartition[] $topic_partitions
|
|
*
|
|
* @throws Exception
|
|
* @return void
|
|
*/
|
|
public function assign($topic_partitions = null)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param null|Message|TopicPartition[] $message_or_offsets
|
|
*
|
|
* @throws Exception
|
|
* @return void
|
|
*/
|
|
public function commit($message_or_offsets = null)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param string $message_or_offsets
|
|
*
|
|
* @throws Exception
|
|
* @return void
|
|
*/
|
|
public function commitAsync($message_or_offsets = null)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param string $timeout_ms
|
|
*
|
|
* @throws Exception
|
|
* @throws \InvalidArgumentException
|
|
* @return Message
|
|
*/
|
|
public function consume($timeout_ms)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @throws Exception
|
|
* @return TopicPartition[]
|
|
*/
|
|
public function getAssignment()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param bool $all_topics
|
|
* @param KafkaConsumerTopic $only_topic
|
|
* @param int $timeout_ms
|
|
*
|
|
* @throws Exception
|
|
* @return Metadata
|
|
*/
|
|
public function getMetadata($all_topics, $only_topic = null, $timeout_ms)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function getSubscription()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param array $topics
|
|
*
|
|
* @throws Exception
|
|
* @return void
|
|
*/
|
|
public function subscribe($topics)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @throws Exception
|
|
* @return void
|
|
*/
|
|
public function unsubscribe()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param array $topics
|
|
* @param int $timeout_ms
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getCommittedOffsets(array $topics, int $timeout_ms)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @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)
|
|
{
|
|
}
|
|
}
|