Exemplo n.º 1
0
        public SyncProducer(SyncProducerConfig config)
        {
            Logger.Debug("Instantiating Scala Sync Producer");

            this.Config = config;
            this.blockingChannel = new BlockingChannel(config.Host, config.Port, BlockingChannel.UseDefaultBufferSize, config.SendBufferBytes, config.RequestTimeoutMs);
            this.BrokerInfo = string.Format("host_{0}-port_{1}", config.Host, config.Port);
            this.producerRequestStats = ProducerRequestStatsRegistry.GetProducerRequestStats(config.ClientId);
        }
Exemplo n.º 2
0
        public SyncProducer(SyncProducerConfig config)
        {
            Logger.Debug("Instantiating Scala Sync Producer");

            this.Config               = config;
            this.blockingChannel      = new BlockingChannel(config.Host, config.Port, BlockingChannel.UseDefaultBufferSize, config.SendBufferBytes, config.RequestTimeoutMs);
            this.BrokerInfo           = string.Format("host_{0}-port_{1}", config.Host, config.Port);
            this.producerRequestStats = ProducerRequestStatsRegistry.GetProducerRequestStats(config.ClientId);
        }