All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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);
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy