forked from arnaud-lb/php-rdkafka
-
Notifications
You must be signed in to change notification settings - Fork 1
/
kafka_consumer.stub.php
71 lines (48 loc) · 2.09 KB
/
kafka_consumer.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* @generate-class-entries
* @generate-function-entries
* @generate-legacy-arginfo
*/
namespace RdKafka;
class KafkaConsumer
{
private ?callable $error_cb;
private ?callable $rebalance_cb;
private ?callable $dr_msg_cb;
public function __construct(Conf $conf) {}
/** @tentative-return-type */
public function assign(?array $topic_partitions = null): void {}
/** @tentative-return-type */
public function getAssignment(): array {}
/** @tentative-return-type */
public function commit(Message|array|null $message_or_offsets = null): void {}
/** @tentative-return-type */
public function close(): void {}
/** @tentative-return-type */
public function commitAsync(Message|array|null $message_or_offsets = null): void {}
/** @tentative-return-type */
public function consume(int $timeout_ms): Message {}
/** @tentative-return-type */
public function subscribe(array $topics): void {}
/** @tentative-return-type */
public function getSubscription(): array {}
/** @tentative-return-type */
public function unsubscribe(): void {}
/** @tentative-return-type */
public function getMetadata(bool $all_topics, ?Topic $only_topic, int $timeout_ms): Metadata {}
/** @tentative-return-type */
public function newTopic(string $topic_name, ?TopicConf $topic_conf = null): KafkaConsumerTopic {}
/** @tentative-return-type */
public function getCommittedOffsets(array $topic_partitions, int $timeout_ms): array {}
/** @tentative-return-type */
public function getOffsetPositions(array $topic_partitions): array {}
/** @tentative-return-type */
public function queryWatermarkOffsets(string $topic, int $partition, int &$low, int &$high, int $timeout_ms): void {}
/** @tentative-return-type */
public function offsetsForTimes(array $topic_partitions, int $timeout_ms): array {}
/** @tentative-return-type */
public function pausePartitions(array $topic_partitions): array {}
/** @tentative-return-type */
public function resumePartitions(array $topic_partitions): array {}
}