public abstract class NeverEndingCommand extends Command{ protected void interrupted() { //override for pids } protected boolean isFinished(){ return true; } protected void end(){ //never called } }