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

Inherits:
Struct
  • Object
show all
Defined in:
lib/karafka/pro/routing/features/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



27
28
29
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 27

def active
  @active
end

#patternObject

Returns the value of attribute pattern



27
28
29
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 27

def pattern
  @pattern
end

#typeObject

Returns the value of attribute type



27
28
29
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 27

def type
  @type
end

Instance Method Details

#discovered?Boolean



41
42
43
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 41

def discovered?
  type == :discovered
end

#matcher?Boolean



36
37
38
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 36

def matcher?
  type == :matcher
end

#regular?Boolean



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

def regular?
  type == :regular
end