Class: Karafka::Pro::Routing::Features::ConsumerGroups::Patterns::Config

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

Overview

Config for pattern based topic Only pattern related topics are active in this context

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#activeObject Also known as: active?

Returns the value of attribute active



38
39
40
# File 'lib/karafka/pro/routing/features/consumer_groups/patterns/config.rb', line 38

def active
  @active
end

#patternObject

Returns the value of attribute pattern



38
39
40
# File 'lib/karafka/pro/routing/features/consumer_groups/patterns/config.rb', line 38

def pattern
  @pattern
end

#typeObject

Returns the value of attribute type



38
39
40
# File 'lib/karafka/pro/routing/features/consumer_groups/patterns/config.rb', line 38

def type
  @type
end

Instance Method Details

#discovered?Boolean



52
53
54
# File 'lib/karafka/pro/routing/features/consumer_groups/patterns/config.rb', line 52

def discovered?
  type == :discovered
end

#matcher?Boolean



47
48
49
# File 'lib/karafka/pro/routing/features/consumer_groups/patterns/config.rb', line 47

def matcher?
  type == :matcher
end

#regular?Boolean



57
58
59
# File 'lib/karafka/pro/routing/features/consumer_groups/patterns/config.rb', line 57

def regular?
  type == :regular
end