Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Java in General
How to delay retry call to RESTFul endpoint via Jersey Client
Maulin Vasavada
Ranch Hand
Posts: 1873
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
I am using Jersey client to hit a RESTFul endpoint. If connection times out I wanted to retry BUT I wanted to put some delay before next retry.
Any ideas how to do it?
Currently, I am using Thread.sleep(<some time in ms>);
Is that good enough? (My RESTFul client code is in my server calling the endpoint).
Thanks
Maulin
Maulin Vasavada
Ranch Hand
Posts: 1873
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Should I use
ScheduledExecutorService
instead?
Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JAX-WS and implementing Client Callbacks
REST Fileupload client
How to 'sleep' in an EJB?
Jersey RESTful web service - How to post XML file using jersey framework
Jersey client architecture question.
More...