
com.cookingfox.lapasse.api.command.logging.CommandHandlerResult Maven / Gradle / Ivy
The newest version!
package com.cookingfox.lapasse.api.command.logging;
import com.cookingfox.lapasse.api.command.Command;
import com.cookingfox.lapasse.api.event.Event;
import java.util.Collection;
/**
* Wraps a command handler result.
*/
public interface CommandHandlerResult {
/**
* @return The command that was handled.
*/
Command getCommand();
/**
* @return The resulting event(s). Note: command handlers are not required to produce events.
*/
Collection getEvents();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy