Forums Register Login

how to keep my program suspended or waited for a specific time?

+Pie Number of slices to send: Send
Dear,
I have a method that will send me a parameter. but I need it to send the parameter after a specific time e.g:9 second;
Is there any special class which keeps my method waiting or suspending for a speific time? In addition, I want to suspend onlyand only the method which calls the waiting command, not the other methods in the class or the class itself!
Thank you,
Sahar.
+Pie Number of slices to send: Send



or

+Pie Number of slices to send: Send
That looks good, but you forgot to mention that Thread.sleep() declares a checked Exception.
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 549 times.
Similar Threads
Performance between Array list and StringBuffer to store Large amount of data?
Method invocation doubt?
select for update --> OCI8 driver
request.setParameter
Equals Doubt
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:35:31.