Skip to content

Commit

Permalink
Filter topics out based on committer (#2)
Browse files Browse the repository at this point in the history
* Filter topics out based on committer

* Deleting topic filter factory, renaming variables
  • Loading branch information
bharathi-ravishanker committed Jul 11, 2017
1 parent d68b914 commit eb4677b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ trait CommitterFactory extends Closeable {
*/
def createCommitterExceptionRetryStrategy: RetryStrategy = DefaultRecoverableExceptionRetryStrategy

/**
* Creates a filter which would filter topics that the committer should process
*
* @return
*/
def createTopicFilter(): TopicFilter = {
new TopicFilter()
}

val DefaultNoDataBackoffStrategy =
RandomMinMaxStrategy(FiniteDuration(5, TimeUnit.SECONDS), FiniteDuration(10, TimeUnit.SECONDS))

Expand Down
11 changes: 11 additions & 0 deletions src/main/scala/com/box/castle/committer/api/TopicFilter.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.box.castle.committer.api

/**
* Created by bravishanker on 7/7/17.
*/
class TopicFilter {

def matches(topic: String): Boolean = {
true
}
}
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version := "1.0.0"
version := "1.0.1"

0 comments on commit eb4677b

Please sign in to comment.