@ManagedAttribute public int getNumberOfTasksInTimer() { TimeScheduler timer = getTimer(); return timer != null ? timer.size() : -1; }