Interface | Description |
---|---|
RetryPolicy |
A RetryPolicy takes some action each time an exception occurs and returns a
PolicyStatus which indicates whether the
policy is exhausted or should continue to retry. |
RetryPolicyTemplate |
A RetryPolicyTemplate creates a new
RetryPolicy instance each time the retry goes into effect, thereby resetting any
state the policy may have (counters, etc.)
A RetryNotifier may be set in order to take action upon each retry attempt. |
Class | Description |
---|---|
AbstractPolicyTemplate |
Base class for RetryPolicyTemplate implementations.
|
ConnectNotifier |
Fires a
ConnectionNotification each time a retry attempt is made. |
NoRetryPolicyTemplate |
This policy is basically a placeholder.
|
NoRetryPolicyTemplate.NoRetryPolicy | |
PolicyStatus |
Indicates the current state of a RetryPolicy
ok: The policy is active
exhausted: The policy has run through the actions for the policy
For example, a RetryPolicy may have a RetryCount - how many times the policy can be invoked.
|
SimpleRetryPolicyTemplate |
This policy allows the user to configure how many times a retry should be attempted and how long to wait between retries.
|
Exception | Description |
---|---|
RetryPolicyExhaustedException |
This exception is thrown when a Retry policy has made all the retry attempts it wants to make and is still failing.
|
Copyright © 2018. All rights reserved.