View Javadoc
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). The method can
5    * throw any kind of exception.
6    *
7    * @param <R> the return type of the <i>target-method</i>
8    */
9   public interface Task<R> {
10  
11    R execute() throws Exception;
12  }