Explore >> Select a destination


You are here

ncorti.com
| | zserge.com
3.0 parsecs away

Travel
| | Bringing java 8 features to android platform
| | shpota.com
3.5 parsecs away

Travel
| | I like Kotlin for its expressiveness. Its interoperability with Java allows the developer to easily use the existing Java ecosystem while enjoying a modern l...
| | adambennett.dev
2.4 parsecs away

Travel
| | Android Bennett's blog :: android, kotlin, thoughts, opinions, occasional rants
| | www.craigpardey.com
17.1 parsecs away

Travel
| Spring 3.2 has some very nice features for scheduling tasks. The pure Java way of doing this looks something like private ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(); class ScheduledTask implements Runnable { @Override public void run() { System.out.println("Running scheduled task"); } } // Schedule a task every 5 seconds executor.scheduleAtFixedRate(new ScheduledTask(), 1, 5, TimeUnit.SECONDS); // If you don't do this then the JVM won't exit cleanly executor.shutdown(); But now, with the snazzy new Spring scheduling annotations, it can be as simple as this