-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
222 additions
and
103 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...otlin/com/wavesenterprise/we/tx/observer/core/spring/executor/ScheduledPartitionPoller.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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package com.wavesenterprise.we.tx.observer.core.spring.executor | ||
|
||
import com.wavesenterprise.we.tx.observer.core.spring.partition.LatestTxPartitionPoller | ||
import com.wavesenterprise.we.tx.observer.core.spring.partition.TxPartitionPoller | ||
|
||
open class ScheduledPartitionPoller( | ||
private val errorHandlingLatestTxPartitionPoller: LatestTxPartitionPoller, | ||
private val errorHandlingTxPartitionPoller: TxPartitionPoller, | ||
) { | ||
|
||
open fun pollWhileHavingActivePartitions() { | ||
while (true) { | ||
errorHandlingLatestTxPartitionPoller.pollLatestActualPartition() ?: break | ||
errorHandlingTxPartitionPoller.pollPartition() ?: break | ||
} | ||
} | ||
} |
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
5 changes: 0 additions & 5 deletions
5
...otlin/com/wavesenterprise/we/tx/observer/core/spring/partition/LatestTxPartitionPoller.kt
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...main/kotlin/com/wavesenterprise/we/tx/observer/core/spring/partition/TxPartitionPoller.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,5 @@ | ||
package com.wavesenterprise.we.tx.observer.core.spring.partition | ||
|
||
interface TxPartitionPoller { | ||
fun pollPartition(): String? | ||
} |
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
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
5 changes: 0 additions & 5 deletions
5
...x-observer-jpa/src/main/resources/__tx_observer_schema/V1.4.4__enqueued_tx_idx_change.sql
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...ver-jpa/src/main/resources/__tx_observer_schema/V1.4.5__tx_queue_partition_idx_change.sql
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.