pro.jk.ejoker.commanding.ICommandService Maven / Gradle / Ivy
package pro.jk.ejoker.commanding;
import java.util.concurrent.Future;
public interface ICommandService {
public Future sendAsync(final ICommand command);
public default Future executeAsync(final ICommand command) {
return executeAsync(command, CommandReturnType.CommandExecuted);
}
public Future executeAsync(final ICommand command, final CommandReturnType commandReturnType);
}