Back to Acra

DefaultRetryPolicy (acra 4.11 API)

web/static/javadoc/4.11/org/acra/config/DefaultRetryPolicy.html

latest3.7 KB
Original Source

Skip navigation links

org.acra.config

Class DefaultRetryPolicy

  • java.lang.Object

    • org.acra.config.DefaultRetryPolicy
  • All Implemented Interfaces:RetryPolicy


public classDefaultRetryPolicyextends java.lang.Object
implements[RetryPolicy](../../../org/acra/config/RetryPolicy.html "interface in org.acra.config")

Default RetryPolicy. Only resend if all senders failed. Since:4.9.1

Nested Class Summary

- 

Nested classes/interfaces inherited from interface org.acra.config.RetryPolicy

RetryPolicy.FailedSender

Constructor Summary

Constructors | Constructor and Description | | --- | | DefaultRetryPolicy() |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method and Description | | --- | --- | | boolean | shouldRetrySend(java.util.List<ReportSender> senders, java.util.List<RetryPolicy.FailedSender> failedSenders) |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

DefaultRetryPolicy

public DefaultRetryPolicy()

Method Detail

- 

shouldRetrySend

public boolean shouldRetrySend(java.util.List<[ReportSender](../../../org/acra/sender/ReportSender.html "interface in org.acra.sender")> senders,
                               java.util.List<[RetryPolicy.FailedSender](../../../org/acra/config/RetryPolicy.FailedSender.html "class in org.acra.config")> failedSenders)

Specified by:shouldRetrySend in interface RetryPolicyParameters:senders - a list of all senders.failedSenders - a list of all failed senders with the thrown exceptions.Returns:true if the request should be resent later, otherwise false.

Skip navigation links