Skip to content

Instantly share code, notes, and snippets.

Created December 13, 2018 22:25
What would you like to do?
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