@Test void testOperation() throws Exception { RetryHandler handler = new ExceptionRetryHandler( exceptionClasses, proxy, schedule, 0) { @Override public Object operation() { return "Hi!"; } }; assertThat(handler.operation()).isEqualTo("Hi!"); }
@Override public abstract Object operation() throws Exception;
ExceptionRetryHandler implements RetryHandler { @Override public abstract Object operation() throws Exception; }
ExceptionRetryHandler implements RetryHandler { @Override public abstract Object operation() throws Exception; private  ExceptionRetryHandler();  ExceptionRetryHandler(Class<?>[] exceptionClasses, ExceptionRetryingProxy proxy, RetrySchedule schedule, int maxRetries); }
ExceptionRetryHandler implements RetryHandler { @Override public abstract Object operation() throws Exception; private  ExceptionRetryHandler();  ExceptionRetryHandler(Class<?>[] exceptionClasses, ExceptionRetryingProxy proxy, RetrySchedule schedule, int maxRetries); @Override Object perform(); @Override void postFailure(Exception ex, int retryCount); @Override abstract Object operation(); long getRetryInterval(int retryCount); }
ExceptionRetryHandler implements RetryHandler { @Override public abstract Object operation() throws Exception; private  ExceptionRetryHandler();  ExceptionRetryHandler(Class<?>[] exceptionClasses, ExceptionRetryingProxy proxy, RetrySchedule schedule, int maxRetries); @Override Object perform(); @Override void postFailure(Exception ex, int retryCount); @Override abstract Object operation(); long getRetryInterval(int retryCount);  }