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
def distinctUntilChanged[AA >: A](implicit A: Eq[AA]): Observable[AA] |
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
Observable | |
.intervalWithFixedDelay(config.interval) | |
.mapEval( _=> repository.findAllWaitingOrderedBySerialIdAsc()) | |
.flatMap(Observable.fromIterable) | |
.bufferTimeAndCounted(config.timeWindow, config.batchSize) |
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
Observable | |
.intervalWithFixedDelay(config.interval) | |
.mapEval( _=> repository.findAllWaitingOrderedBySerialIdAsc()) | |
.flatMap(Observable.fromIterable) |
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
Observable | |
.intervalWithFixedDelay(config.interval) | |
.mapEval( _=> repository.findAllWaitingOrderedBySerialIdAsc()) | |
.map( list => list.groupBy(_.currency)) |
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
def startExecutor = | |
Observable | |
.intervalWithFixedDelay(config.interval) | |
.mapEval(_=> repository.findAllWaitingOrderedBySerialIdAsc()) |
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
class WithdrawalBatchingExecutor(repository: WithdrawalRepository, | |
externalSystem: ExternalWithdrawSystem) { | |
def startExecutor = ??? | |
} |
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
trait ExternalWithdrawSystem { | |
def executeWithdrawals(List[Withdraw]) : Task[Unit] | |
} |
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
trait WithdrawalRepository { | |
def findAllWaitingOrderedBySerialIdAsc() : Task[List[Withdrawal]] | |
} |
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
docker-compose --project-name ${BUILD_ID} down |
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
docker-compose --project-name ${BUILD_ID} up -d |