DuplicateCommandHandlerResolver. This resolver is a functional interface ingesting a command name and a registered candidate command handler method; a single command handler method is the return value. By default, the
LoggingDuplicateCommandHandlerResolveris used, which will log a warning and returns the candidate handler.
DuplicateCommandHandlerResolverit is suggested to use the
DuplicateCommandHandlerResolution, as this class gives a handle to all provided implementations. To configure the duplicate resolver to, for example, throw a
DuplicateCommandHandlerSubscriptionExceptionas a warning, the following approach can be taken: