@FunctionalInterface public interface DuplicateHandler
| Modifier and Type | Field and Description |
|---|---|
static DuplicateHandler |
DEFAULT
Default handler logging skipped commands on INFO and skipped events on DEBUG
|
static DuplicateHandler |
NOOP
No-op handler silently ignoring all duplicates.
|
| Modifier and Type | Method and Description |
|---|---|
static DuplicateHandler |
loggingHandler(Logger.Factory loggerFactory)
Handler logging skipped commands on INFO and skipped events on DEBUG
|
void |
skipCommandProcessing(Command command)
Command processing is skipped as all events for this command ID have already been applied.
|
default void |
skipEventApplying(Event event)
Event applying is skipped because it has already been applied.
|
static final DuplicateHandler DEFAULT
static final DuplicateHandler NOOP
void skipCommandProcessing(Command command)
This usually happens when
command - the skipped commanddefault void skipEventApplying(Event event)
This usually happens when
event - the skipped eventstatic DuplicateHandler loggingHandler(Logger.Factory loggerFactory)
loggerFactory - factory to create logger for duplicate handler classCopyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.