Questions tagged [retrypolicy]

Provides the base implementation of the retry mechanism for unreliable actions and transient conditions when accessing Sql Azure.

101 questions
0
votes
1 answer

Why we apply delay between retry requests

When we have a piece of code that often fails and must be retried. Then we use retry pattern. try { //do request here } catch (Exception e) { //wait for some millisecond and retry retry(); } We normally delay for some…
Muhammad Imran Tariq
  • 22,654
  • 47
  • 125
  • 190
0
votes
0 answers

RetryLogic using AOP is not working for MongoItemWritrer , but the same is working for my custom Readers and writers

RetryLogic using AOP is not working for MongoItemWritrer , but the same is working for my custom Readers and writers Is there anything that I'm doing wrong here. Below is the code snipopet.
PKR
  • 228
  • 2
  • 16
0
votes
1 answer

Mule - JMS (ActiveMQ) Reconnection

This is my mule flow 1: HTTP > Payload String > Logger > JMS /normalqueue The first flow has an error handling: File (Write a file per message handled) Flow 2: JMS /normalqueue > Logger Recovery flow (Invoked with a groovy script): File (Read…
gtx911
  • 1,189
  • 4
  • 25
  • 46
0
votes
2 answers

Cassandra : Changing the number of retry Attempts and the retry Delay

I am using a client to write to cassandra (api : com.datastax.driver.core ) If I bring down the cassandra clustures after the connection has been done. I get the following error in my logs 2015-11-05 12:08:21,667 ERROR [Reconnection-1]…
nandini
  • 428
  • 2
  • 9
  • 20
0
votes
1 answer

Does Spring Integration Retry Advice capture any changes done on messages during retry?

I've a service-activator bean which has a method that gets a List of SI messages as input. The method iterates through the list, gets each SI message from it, gets the payload from SI message and then sends the payload to a MQ (I'm not using any…
lbvirgo
  • 354
  • 1
  • 5
  • 22
0
votes
0 answers

Volley policy send request 2 times

I am using volley library. I don't want to retry request when user gets time out. I found some answers but they don't fix my problem. Original library: OwnReq.setRetryPolicy(new DefaultRetryPolicy( …
0
votes
1 answer

Obsolete RetryPolicy code for Azure blob storage

I am coding an MVC5 application, and am uploading BlockBlobs to Azure. I have some Microsoft code that is now obsolete, and I wish to convert this obsolete code to code that will work in my application. Here is the old…
-1
votes
1 answer

Polly Timeout policy wrapped in WaitAndRetry policy does not work

I have a service which writes files over some network using FileStream, without a write timeout. I added a Polly WaitAndRetry policy to handle occasional write failures, and that works great. I noticed that sometimes a write just hangs though, so…
Dondey
  • 267
  • 4
  • 13
-1
votes
1 answer

Azure Event Hub - How to achieve infinite retry?

EventHub consumer need to process the message it received until it succeeds during the transient faults, how to achieve this infinite retry by honoring the EventHub partition lease expiry? Here the business scenario is not important but the approach…
191180rk
  • 735
  • 2
  • 12
  • 37
-1
votes
1 answer

Turn Retry Policy into Reusable Function

We have a simple retry policy for our project: On the first error, sleep for 1 second. On the second error, sleep for 5 seconds. On the third error, sleep for 10 seconds. On the fourth error, quit retrying and return the error. Here is what our…
Floating Sunfish
  • 4,920
  • 5
  • 29
  • 48
-1
votes
1 answer

Swipe Refresh Layout retry progress bar after (x) minutes

I read documentation of SwipeRefreshLayoutbut couldn't find any method for RetryPolicy. I want SwipeRefreshLayout to show retry in progressbar if data isn't fetched in 5 seconds. Any guideliness
Ubaid Tanoli
  • 183
  • 14
1 2 3 4 5 6
7