public class RetryPolicyTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PREDICATE_CLASS |
| Constructor and Description |
|---|
RetryPolicyTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertASyncRetry(Server server,
org.spf4j.failsafe.AsyncRetryExecutor<Response,ServerCall> rp,
Response response1) |
void |
assertSyncRetry(Server server,
org.spf4j.failsafe.AsyncRetryExecutor<Response,ServerCall> rp,
Response response1) |
org.spf4j.failsafe.AsyncRetryExecutor<Response,ServerCall> |
buildRetryExecutor() |
static void |
init() |
static void |
shutdown() |
void |
testComplexRetryASync() |
void |
testComplexRetrySync() |
void |
testDefaulPolicy() |
void |
testDefaulPolicyAsync() |
void |
testDefaulPolicyInterruption() |
void |
testDefaulPolicyInterruptionAsync() |
void |
testNoRetryPolicy() |
void |
testNoRetryPolicy2() |
void |
testNoRetryPolicyAsync() |
void |
testSpecificExceptionRetryPolicy() |
public static final String PREDICATE_CLASS
public static void init()
public static void shutdown()
throws InterruptedException
InterruptedExceptionpublic void testNoRetryPolicy()
throws IOException,
InterruptedException,
TimeoutException
public void testNoRetryPolicyAsync()
throws IOException,
InterruptedException,
TimeoutException
public void testDefaulPolicy()
throws IOException,
InterruptedException,
TimeoutException
public void testDefaulPolicyAsync()
throws IOException,
InterruptedException,
TimeoutException
public void testDefaulPolicyInterruption()
throws IOException,
InterruptedException,
TimeoutException
public void testDefaulPolicyInterruptionAsync()
throws IOException,
InterruptedException,
TimeoutException,
ExecutionException
public void testNoRetryPolicy2()
throws InterruptedException,
TimeoutException
InterruptedExceptionTimeoutExceptionpublic void testComplexRetrySync()
throws InterruptedException,
TimeoutException,
IOException,
ExecutionException
public void testComplexRetryASync()
throws InterruptedException,
TimeoutException,
IOException,
ExecutionException
public final org.spf4j.failsafe.AsyncRetryExecutor<Response,ServerCall> buildRetryExecutor()
public final void assertSyncRetry(Server server, org.spf4j.failsafe.AsyncRetryExecutor<Response,ServerCall> rp, Response response1) throws InterruptedException, TimeoutException, ExecutionException, IOException
public final void assertASyncRetry(Server server, org.spf4j.failsafe.AsyncRetryExecutor<Response,ServerCall> rp, Response response1) throws InterruptedException, TimeoutException, ExecutionException, IOException
public void testSpecificExceptionRetryPolicy()
throws TimeoutException,
InterruptedException
TimeoutExceptionInterruptedExceptionCopyright © 2021 SPF4J. All rights reserved.