@Test public void testRetryAfterSingleFailure() throws Exception { when(mockApi.doSomething()) .thenThrow(new ProcessingException("Fake timeout induced by test")) .thenReturn("a response"); jaxRsStrategy.apply(TestJaxRsApi::doSomething); verify(mockApi, times(2)).doSomething(); }
@Override public <R> R apply(final Function<T, R> function) throws IOException { return apply(function, new LegacyJaxRsTimeouts()); }
RetryingJaxRsStrategy implements JaxRsStrategy<T> { @Override public <R> R apply(final Function<T, R> function) throws IOException { return apply(function, new LegacyJaxRsTimeouts()); } }
RetryingJaxRsStrategy implements JaxRsStrategy<T> { @Override public <R> R apply(final Function<T, R> function) throws IOException { return apply(function, new LegacyJaxRsTimeouts()); } RetryingJaxRsStrategy(
            final Set<HostName> hostNames,
            final int port,
            final JaxRsClientFactory jaxRsClientFactory,
            final Class<T> apiClass,
            final String pathPrefix,
            String scheme); }
RetryingJaxRsStrategy implements JaxRsStrategy<T> { @Override public <R> R apply(final Function<T, R> function) throws IOException { return apply(function, new LegacyJaxRsTimeouts()); } RetryingJaxRsStrategy(
            final Set<HostName> hostNames,
            final int port,
            final JaxRsClientFactory jaxRsClientFactory,
            final Class<T> apiClass,
            final String pathPrefix,
            String scheme); RetryingJaxRsStrategy<T> setMaxIterations(int maxIterations); @Override R apply(final Function<T, R> function); @Override R apply(final Function<T, R> function, JaxRsTimeouts timeouts); }
RetryingJaxRsStrategy implements JaxRsStrategy<T> { @Override public <R> R apply(final Function<T, R> function) throws IOException { return apply(function, new LegacyJaxRsTimeouts()); } RetryingJaxRsStrategy(
            final Set<HostName> hostNames,
            final int port,
            final JaxRsClientFactory jaxRsClientFactory,
            final Class<T> apiClass,
            final String pathPrefix,
            String scheme); RetryingJaxRsStrategy<T> setMaxIterations(int maxIterations); @Override R apply(final Function<T, R> function); @Override R apply(final Function<T, R> function, JaxRsTimeouts timeouts);  }