Class ActionMapper.Builder

    • Method Detail

      • map

        public <R,​S extends StoreAction<R>> ActionMapper.Builder map​(Class<S> actionType,
                                                                           Function<? super S,​? extends Publisher<R>> handler)
        Maps a specific action type to a handler function to execute.
        Type Parameters:
        R - the return type of the action
        S - the type of the action itself
        Parameters:
        actionType - the type of the action
        handler - the handler to execute when an action of the specified type is received
        Returns:
        this ActionMapper.Builder enriched with the added mapping