Class: Pinot::ClientConfig
- Inherits:
-
Object
- Object
- Pinot::ClientConfig
- Defined in:
- lib/pinot/config.rb
Instance Attribute Summary collapse
-
#broker_list ⇒ Object
Returns the value of attribute broker_list.
-
#controller_config ⇒ Object
Returns the value of attribute controller_config.
-
#extra_http_header ⇒ Object
Returns the value of attribute extra_http_header.
-
#grpc_config ⇒ Object
Returns the value of attribute grpc_config.
-
#http_timeout ⇒ Object
Returns the value of attribute http_timeout.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#tls_config ⇒ Object
Returns the value of attribute tls_config.
-
#use_multistage_engine ⇒ Object
Returns the value of attribute use_multistage_engine.
Instance Method Summary collapse
-
#initialize(broker_list: [], http_timeout: nil, extra_http_header: {}, use_multistage_engine: false, controller_config: nil, logger: nil, tls_config: nil, grpc_config: nil) ⇒ ClientConfig
constructor
A new instance of ClientConfig.
Constructor Details
#initialize(broker_list: [], http_timeout: nil, extra_http_header: {}, use_multistage_engine: false, controller_config: nil, logger: nil, tls_config: nil, grpc_config: nil) ⇒ ClientConfig
Returns a new instance of ClientConfig.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/pinot/config.rb', line 17 def initialize( broker_list: [], http_timeout: nil, extra_http_header: {}, use_multistage_engine: false, controller_config: nil, logger: nil, tls_config: nil, grpc_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 @logger = logger @tls_config = tls_config @grpc_config = grpc_config end |
Instance Attribute Details
#broker_list ⇒ Object
Returns the value of attribute broker_list.
13 14 15 |
# File 'lib/pinot/config.rb', line 13 def broker_list @broker_list end |
#controller_config ⇒ Object
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_header ⇒ Object
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 |
#grpc_config ⇒ Object
Returns the value of attribute grpc_config.
13 14 15 |
# File 'lib/pinot/config.rb', line 13 def grpc_config @grpc_config end |
#http_timeout ⇒ Object
Returns the value of attribute http_timeout.
13 14 15 |
# File 'lib/pinot/config.rb', line 13 def http_timeout @http_timeout end |
#logger ⇒ Object
Returns the value of attribute logger.
13 14 15 |
# File 'lib/pinot/config.rb', line 13 def logger @logger end |
#tls_config ⇒ Object
Returns the value of attribute tls_config.
13 14 15 |
# File 'lib/pinot/config.rb', line 13 def tls_config @tls_config end |
#use_multistage_engine ⇒ Object
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 |