This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service | |
@RequiredArgsConstructor | |
public class SomeRouterService { | |
@NonNull private final DispatcherService dispatcherService; | |
@Qualifier("someDestination1") @NonNull private final SomeDestination someDestination1; | |
@Qualifier("someDestination2") @NonNull private final SomeDestination someDestination2; | |
public void onMessage(Message message) { | |
//..some code to route stuff based on something to either destination1 or destination2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment