1 | <?php declare(strict_types=1); |
||
5 | final class Consumer extends \RdKafka\KafkaConsumer |
||
6 | { |
||
7 | public const DEFAULT_TIMEOUT = 10000; |
||
8 | |||
9 | /** |
||
10 | * {@inheritdoc} |
||
11 | */ |
||
12 | public function __construct(Configuration $configuration) |
||
16 | |||
17 | /** |
||
18 | * @param int $timeout |
||
19 | * |
||
20 | * @return \RdKafka\Message |
||
21 | * |
||
22 | * @throws \RdKafka\Exception |
||
23 | */ |
||
24 | public function consume($timeout = self::DEFAULT_TIMEOUT): \RdKafka\Message |
||
28 | } |
||
29 |