-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
consumer.stub.php
36 lines (21 loc) · 939 Bytes
/
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
<?php
/** @generate-function-entries */
namespace SimpleKafkaClient;
class Consumer
{
public function __construct(Configuration $configuration) {}
public function assign(?array $topics = null): void {}
public function getAssignment(): array {}
public function subscribe(array $topics): void {}
public function getSubscription(): array {}
public function unsubscribe(): void {}
public function consume(int $timeoutMs): Message {}
/** @param Message|array $messageOrOffsets */
public function commit($messageOrOffsets): void {}
/** @param Message|array $messageOrOffsets */
public function commitAsync($messageOrOffsets): void {}
public function close(): void {}
public function getTopicHandle(string $topic): ConsumerTopic {}
public function getCommittedOffsets(array $topics, int $timeoutMs): array {}
public function getOffsetPositions(array $topics): array {}
}