Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Method trigger automatically after some time  RSS feed

 
lynn fann
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an issue here.

my method will be trigger automatically again after sometime (every 5 min), is there anyway to set this?

my method is calling external API which the response time is very slow (i cannt control the response for api). But before i get the response back, my method is trigger again, causing my method to go into endless loop.


Is there any way i can handle the issue above?
 
Kavita Tipnis
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be you should look at the Timer class in Java http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/Timer.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!