__construct

Description

public function __construct(Configuration $configuration) {}

Get a consumer instance

Example

$conf = SimpleKafkaClient\Configuration();
$conf->set('metadata.broker.list', 'kafka:9092');
$consumer = new SimpleKafkaClient\Consumer($conf);