co.com.sofka.infraestructure.bus.CommandBus Maven / Gradle / Ivy
package co.com.sofka.infraestructure.bus;
import co.com.sofka.domain.generic.Command;
import co.com.sofka.infraestructure.handle.HandlerExecutionError;
/**
* The interface Command bus.
*/
@FunctionalInterface
public interface CommandBus {
/**
* Dispatch.
*
* @param command the command
* @throws HandlerExecutionError the handler execution error
*/
void dispatch(Command command) throws HandlerExecutionError;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy