Currently I'm using this for a 5 minute task, but is it still the best method for a 12 times per second task, or should I use a thread with a thread-sleep in it, or is there a better method still?
Code: Select all
m_taskHandle = sfs.getTaskScheduler().scheduleAtFixedRate(new MyScheduler(), 0, 300, TimeUnit.SECONDS);
Many thanks.