fluxfx/src/main/java/eu/lestard/fluxfx/Store.java
protected <T extends Action> void subscribe(Class<T> actionType, Consumer<T> actionConsumer) {
        Dispatcher.getInstance().getActionStream(actionType).subscribe(actionConsumer);
    }
protected <T extends Action> void subscribe(Class<T> actionType, Consumer<T> actionConsumer) {
        Dispatcher.getInstance().getActionStream(actionType).subscribe(actionConsumer);
    }
This method can be used to subscribe to actions of a given type. The subscription is managed by the {@link Dispatcher}.

@param actionType the class type of the action.
@param actionConsumer a consumer function that is invoked when an action is dispatched.
@param <T> the generic type of the action.