Class: Pinot::ClientConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/pinot/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(broker_list: [], http_timeout: nil, extra_http_header: {}, use_multistage_engine: false, controller_config: nil) ⇒ ClientConfig

Returns a new instance of ClientConfig.



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/pinot/config.rb', line 16

def initialize(
  broker_list: [],
  http_timeout: nil,
  extra_http_header: {},
  use_multistage_engine: false,
  controller_config: nil
)
  @broker_list = broker_list
  @http_timeout = http_timeout
  @extra_http_header = extra_http_header
  @use_multistage_engine = use_multistage_engine
  @controller_config = controller_config
end

Instance Attribute Details

#broker_listObject

Returns the value of attribute broker_list.



13
14
15
# File 'lib/pinot/config.rb', line 13

def broker_list
  @broker_list
end

#controller_configObject

Returns the value of attribute controller_config.



13
14
15
# File 'lib/pinot/config.rb', line 13

def controller_config
  @controller_config
end

#extra_http_headerObject

Returns the value of attribute extra_http_header.



13
14
15
# File 'lib/pinot/config.rb', line 13

def extra_http_header
  @extra_http_header
end

#http_timeoutObject

Returns the value of attribute http_timeout.



13
14
15
# File 'lib/pinot/config.rb', line 13

def http_timeout
  @http_timeout
end

#use_multistage_engineObject

Returns the value of attribute use_multistage_engine.



13
14
15
# File 'lib/pinot/config.rb', line 13

def use_multistage_engine
  @use_multistage_engine
end