UNPKG

kafka-java-bridge

Version:

Kafka java client wrapper. Supports kafka version 0.8 and up

10 lines (8 loc) 2.39 kB
var __cov_PtHLLuq2DsqmveA4xRErhg = (Function('return this'))(); if (!__cov_PtHLLuq2DsqmveA4xRErhg.__coverage__) { __cov_PtHLLuq2DsqmveA4xRErhg.__coverage__ = {}; } __cov_PtHLLuq2DsqmveA4xRErhg = __cov_PtHLLuq2DsqmveA4xRErhg.__coverage__; if (!(__cov_PtHLLuq2DsqmveA4xRErhg['lib/binaryProducer.js'])) { __cov_PtHLLuq2DsqmveA4xRErhg['lib/binaryProducer.js'] = {"path":"lib/binaryProducer.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"b":{},"f":{"1":0,"2":0,"3":0,"4":0},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":15},"end":{"line":7,"column":25}}},"2":{"name":"(anonymous_2)","line":11,"loc":{"start":{"line":11,"column":8},"end":{"line":11,"column":25}}},"3":{"name":"(anonymous_3)","line":15,"loc":{"start":{"line":15,"column":15},"end":{"line":15,"column":37}}},"4":{"name":"(anonymous_4)","line":19,"loc":{"start":{"line":19,"column":27},"end":{"line":19,"column":60}}}},"statementMap":{"1":{"start":{"line":4,"column":0},"end":{"line":4,"column":39}},"2":{"start":{"line":8,"column":8},"end":{"line":8,"column":132}},"3":{"start":{"line":12,"column":8},"end":{"line":12,"column":54}},"4":{"start":{"line":16,"column":7},"end":{"line":16,"column":84}},"5":{"start":{"line":20,"column":8},"end":{"line":20,"column":108}},"6":{"start":{"line":24,"column":0},"end":{"line":24,"column":32}}},"branchMap":{}}; } __cov_PtHLLuq2DsqmveA4xRErhg = __cov_PtHLLuq2DsqmveA4xRErhg['lib/binaryProducer.js']; __cov_PtHLLuq2DsqmveA4xRErhg.s['1']++;const Producer=require('./Producer');class BinaryProducer extends Producer{constructor(options){__cov_PtHLLuq2DsqmveA4xRErhg.f['1']++;__cov_PtHLLuq2DsqmveA4xRErhg.s['2']++;super(options,'com.liveperson.kafka.producer.BinaryProducer','org.apache.kafka.common.serialization.ByteArraySerializer');}send(topic,msg,cb){__cov_PtHLLuq2DsqmveA4xRErhg.f['2']++;__cov_PtHLLuq2DsqmveA4xRErhg.s['3']++;super.send(topic,msg.toString('binary'),cb);}sendWithKey(topic,msg,key,cb){__cov_PtHLLuq2DsqmveA4xRErhg.f['3']++;__cov_PtHLLuq2DsqmveA4xRErhg.s['4']++;super.sendWithKey(topic,msg.toString('binary'),key.toString('binary'),cb);}sendWithKeyAndPartition(topic,msg,key,partition,cb){__cov_PtHLLuq2DsqmveA4xRErhg.f['4']++;__cov_PtHLLuq2DsqmveA4xRErhg.s['5']++;super.sendWithKeyAndPartition(topic,msg.toString('binary'),key.toString('binary'),partition,cb);}}__cov_PtHLLuq2DsqmveA4xRErhg.s['6']++;module.exports=BinaryProducer;