Wednesday 26 June 2013

Schedule a Method to run later

If you do not want to run a method in the normal application process flow, you can use ScheduledExecutorService to run it later. This sample code executes the "myFunction" 5 Seconds later.

No comments:

Post a Comment