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

Returns:

  • (Object)

    the current value of active



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

def active
  @active
end

#patternObject

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



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

def pattern
  @pattern
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end

Instance Method Details

#discovered?Boolean

Returns is this a discovered topic.

Returns:

  • (Boolean)

    is this a discovered topic



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

def discovered?
  type == :discovered
end

#matcher?Boolean

Returns is this a matcher topic.

Returns:

  • (Boolean)

    is this a matcher topic



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

def matcher?
  type == :matcher
end

#regular?Boolean

Returns is this a regular topic.

Returns:

  • (Boolean)

    is this a regular topic



63
64
65
# File 'lib/karafka/pro/routing/features/patterns/config.rb', line 63

def regular?
  type == :regular
end