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 run -it --rm --name country-maven-project -v "$PWD":/usr/src/app -v "$HOME"/.m2:/root/.m2 -w /usr/src/app maven:3-eclipse-temurin-17 mvn clean package -DskipTests |
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
public class RetryProcessor { | |
private final long schedulerIntervalMs = 60000; | |
private final String entityStoreName = "failed-message-store"; | |
private KeyValueStore<String, Object> entityStore; | |
@Override | |
public void init(final ProcessorContext context) { | |
this.entityStore = (KeyValueStore) context().getStateStore(entityStoreName); | |
context().schedule(Duration.ofMillis(this.schedulerIntervalMs), PunctuationType.WALL_CLOCK_TIME, |