/explore
|
You are here |
www.stackchief.com | ||
| | | | |
www.craigpardey.com
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 |
|
| | | | | ||
| | | | |
www.janwagemakers.be
For the smartthermostat I'm working on, I was looking for a way to get the outside temperature without placing a real sensor outside. |
|
| | | | | ||
| | | | |
boyter.org
[AI summary] This blog post compares the performance of Java and Go when processing large files, highlighting the challenges Java faces with memory-mapped files and the efficiency of Go's concurrency model. The author tests various implementations, including a Java solution with threads and queues, and finds that Go's approach is faster, though Java can be optimized with batch processing and efficient queue implementations. The post concludes that for optimal large file processing, Go is more suitable, but Java can still be competitive with the right techniques. |
|
| | | | | ||
| | | | |
blog.bdoughan.com
Java XML and JSON Binding: EclipseLink MOXy and the Java API for JSON Processing - Object Model APIs The Java API for JSON Processing (JSR-353) is the Java standard for producing and consuming JSON which was introduced as part of Java EE 7.... |
|
| | | |||