public abstract class DuplicateQueryHandlerResolution extends Object
DuplicateQueryHandlerResolver implementations. Can be used to
configure how a QueryBus should react upon a duplicate subscription of a
query handling function.| Modifier and Type | Method and Description |
|---|---|
static DuplicateQueryHandlerResolver |
logAndAccept()
A
DuplicateQueryHandlerResolver implementation which logs a warning message and resolve to returning
both handlers as query handlers. |
static DuplicateQueryHandlerResolver |
rejectDuplicates()
A
DuplicateQueryHandlerResolver implementation which throws a
DuplicateQueryHandlerSubscriptionException. |
static DuplicateQueryHandlerResolver |
silentlyAdd()
A
DuplicateQueryHandlerResolver implementation that allows handlers to silently add previous
registered handlers for the same query. |
public static DuplicateQueryHandlerResolver logAndAccept()
DuplicateQueryHandlerResolver implementation which logs a warning message and resolve to returning
both handlers as query handlers.public static DuplicateQueryHandlerResolver rejectDuplicates()
DuplicateQueryHandlerResolver implementation which throws a
DuplicateQueryHandlerSubscriptionException.public static DuplicateQueryHandlerResolver silentlyAdd()
DuplicateQueryHandlerResolver implementation that allows handlers to silently add previous
registered handlers for the same query.Copyright © 2010–2025. All rights reserved.