@FunctionalInterface public interface DuplicateCommandHandlerResolver
MessageHandler instances and returns another one as the resolution.| Modifier and Type | Method and Description | 
|---|---|
MessageHandler<? super CommandMessage<?>> | 
resolve(String commandName,
       MessageHandler<? super CommandMessage<?>> registeredHandler,
       MessageHandler<? super CommandMessage<?>> candidateHandler)
Chooses what to do when a duplicate handler is registered, returning the handler that should be selected for
 command handling, or otherwise throwing an exception to reject registration altogether. 
 | 
MessageHandler<? super CommandMessage<?>> resolve(@Nonnull String commandName, @Nonnull MessageHandler<? super CommandMessage<?>> registeredHandler, @Nonnull MessageHandler<? super CommandMessage<?>> candidateHandler)
commandName - The name of the Command for which the duplicate was detectedregisteredHandler - the MessageHandler previously registered with the Command BuscandidateHandler - the MessageHandler that is newly registered and conflicts with the existing registrationMessageHandler. Could be the registeredHandler, the candidateHandler or
 another handler entirelyRuntimeException - when registration should failCopyright © 2010–2025. All rights reserved.