Method: Kafka::ConnectionBuilder#initialize
- Defined in:
- lib/kafka/connection_builder.rb
#initialize(client_id:, logger:, instrumenter:, connect_timeout:, socket_timeout:, ssl_context:, sasl_authenticator:) ⇒ ConnectionBuilder
Returns a new instance of ConnectionBuilder.
5 6 7 8 9 10 11 12 13 |
# File 'lib/kafka/connection_builder.rb', line 5 def initialize(client_id:, logger:, instrumenter:, connect_timeout:, socket_timeout:, ssl_context:, sasl_authenticator:) @client_id = client_id @logger = TaggedLogger.new(logger) @instrumenter = instrumenter @connect_timeout = connect_timeout @socket_timeout = socket_timeout @ssl_context = ssl_context @sasl_authenticator = sasl_authenticator end |