Class: Karafka::Pro::Routing::Features::Patterns::Config
- Inherits:
-
Struct
- Object
- Struct
- Karafka::Pro::Routing::Features::Patterns::Config
- 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
-
#active ⇒ Object
(also: #active?)
Returns the value of attribute active.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#discovered? ⇒ Boolean
Is this a discovered topic.
-
#matcher? ⇒ Boolean
Is this a matcher topic.
-
#regular? ⇒ Boolean
Is this a regular topic.
Instance Attribute Details
#active ⇒ Object Also known as: active?
Returns the value of attribute active
19 20 21 |
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 19 def active @active end |
#pattern ⇒ Object
Returns the value of attribute pattern
19 20 21 |
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 19 def pattern @pattern end |
#type ⇒ Object
Returns the value of attribute type
19 20 21 |
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 19 def type @type end |
Instance Method Details
#discovered? ⇒ Boolean
Returns is this a discovered topic.
33 34 35 |
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 33 def discovered? type == :discovered end |
#matcher? ⇒ Boolean
Returns is this a matcher topic.
28 29 30 |
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 28 def matcher? type == :matcher end |
#regular? ⇒ Boolean
Returns is this a regular topic.
38 39 40 |
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 38 def regular? type == :regular end |