-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from MarshallWace/migration-prep
topology changes for migrating from legacy
- Loading branch information
Showing
3 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
kafkakewl-domain/src/main/kotlin/com/mwam/kafkakewl/domain/Matcher.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.mwam.kafkakewl.domain | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
/** Base interface for the different kind of matchers that can match a fully qualified topic or application id. */ | ||
@Serializable | ||
sealed interface Matcher | ||
object Matchers { | ||
/** It matches any topic or application id */ | ||
@Serializable | ||
@SerialName("any") | ||
object Any: Matcher | ||
|
||
/** It matches exactly the specified topic or application id */ | ||
@Serializable | ||
@SerialName("exact") | ||
data class Exact(val value: String): Matcher | ||
|
||
/** It matches exactly the specified topic or application id */ | ||
@Serializable | ||
@SerialName("regex") | ||
data class Regex(val value: String): Matcher | ||
|
||
/** It matches the topic or application ids in the specified namespace */ | ||
@Serializable | ||
@SerialName("namespace") | ||
data class Namespace(val value: String): Matcher | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters