public static Timer getNamedTimer ( String timerName , int todoFlags , long threadId ) { Timer key = new Timer ( timerName , todoFlags , threadId ) ; registeredTimers . putIfAbsent ( key , key ) ; return registeredTimers . get ( key ) ; }
Get a timer of the given string name for the given thread . If no such timer exists yet then it will be newly created .