-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements #57 SwimlaneDispatcher configurable - hashing algorithm, t…
…hreadpool size - defined TopicPartitionToSwimLaneMapping strategy
- Loading branch information
Showing
8 changed files
with
55 additions
and
11 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
10 changes: 10 additions & 0 deletions
10
...n/java/io/eventuate/messaging/kafka/consumer/OriginalTopicPartitionToSwimLaneMapping.java
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,10 @@ | ||
package io.eventuate.messaging.kafka.consumer; | ||
|
||
import org.apache.kafka.common.TopicPartition; | ||
|
||
public class OriginalTopicPartitionToSwimLaneMapping implements TopicPartitionToSwimLaneMapping { | ||
@Override | ||
public Integer toSwimLane(TopicPartition topicPartition) { | ||
return topicPartition.partition(); | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
.../src/main/java/io/eventuate/messaging/kafka/consumer/TopicPartitionToSwimLaneMapping.java
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,7 @@ | ||
package io.eventuate.messaging.kafka.consumer; | ||
|
||
import org.apache.kafka.common.TopicPartition; | ||
|
||
public interface TopicPartitionToSwimLaneMapping { | ||
Integer toSwimLane(TopicPartition topicPartition); | ||
} |
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
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
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
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