1 package net.secodo.jcircuitbreaker.task; 2 3 /** 4 * Represents the java method that should be executed (called <i>target-method</i> in this context) which does not 5 * return value. The method can throw any kind of exception. 6 */ 7 public interface VoidTask extends Task<Void> { 8 9 @Override 10 default Void execute() throws Exception { 11 executeVoid(); 12 return null; 13 } 14 15 void executeVoid() throws Exception; 16 17 }