
com.gruelbox.transactionoutbox.testing.ClassProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transactionoutbox-testing Show documentation
Show all versions of transactionoutbox-testing Show documentation
A safe implementation of the transactional outbox pattern for Java (core library)
package com.gruelbox.transactionoutbox.testing;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ClassProcessor {
private static final Logger LOGGER = LoggerFactory.getLogger(ClassProcessor.class);
static final List PROCESSED = new CopyOnWriteArrayList<>();
void process(String itemId) {
LOGGER.info("Processing work: {}", itemId);
PROCESSED.add(itemId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy