
com.cookingfox.lapasse.api.command.handler.RxMultiCommandHandler Maven / Gradle / Ivy
package com.cookingfox.lapasse.api.command.handler;
import com.cookingfox.lapasse.api.command.Command;
import com.cookingfox.lapasse.api.event.Event;
import com.cookingfox.lapasse.api.state.State;
import rx.Observable;
import java.util.Collection;
/**
* Command handler that returns an Rx Observable for a collection of events.
*
* @param The concrete type of the state object.
* @param The concrete command type that this handler will handle.
* @param The concrete event type that this handler will produce.
*/
public interface RxMultiCommandHandler
extends MultiCommandHandler {
/**
* Handle a command and return an Rx Observable.
*
* @param state The current state object.
* @param command The command object to handle.
* @return An Rx Observable for a collection of events.
*/
Observable> handle(S state, C command);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy