__construct

Description

public function __construct(Configuration $configuration) {}

Get a producer instance

Example

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