Class: Karafka::Pro::Routing::Features::Multiplexing::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/karafka/pro/routing/features/multiplexing/config.rb

Overview

Multiplexing configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#activeObject Also known as: active?

Returns the value of attribute active

Returns:

  • (Object)

    the current value of active



20
21
22
# File 'lib/karafka/pro/routing/features/multiplexing/config.rb', line 20

def active
  @active
end

#bootObject

Returns the value of attribute boot

Returns:

  • (Object)

    the current value of boot



20
21
22
# File 'lib/karafka/pro/routing/features/multiplexing/config.rb', line 20

def boot
  @boot
end

#maxObject

Returns the value of attribute max

Returns:

  • (Object)

    the current value of max



20
21
22
# File 'lib/karafka/pro/routing/features/multiplexing/config.rb', line 20

def max
  @max
end

#minObject

Returns the value of attribute min

Returns:

  • (Object)

    the current value of min



20
21
22
# File 'lib/karafka/pro/routing/features/multiplexing/config.rb', line 20

def min
  @min
end

Instance Method Details

#dynamic?Boolean

Returns true if we are allowed to upscale and downscale.

Returns:

  • (Boolean)

    true if we are allowed to upscale and downscale



30
31
32
# File 'lib/karafka/pro/routing/features/multiplexing/config.rb', line 30

def dynamic?
  min < max
end