public void queueTimerToStart ( TimerNpImpl timer ) { // F743-13022 if ( globalTransaction ) { if ( timersQueuedToStart == null ) { // F743-425.CodRev // Lazy creation of HashMap timersQueuedToStart = new HashMap < String , TimerNpImpl > ( ) ; // F473-425.1 } timersQueuedToStart . put ( timer . getTaskId ( ) , timer ) ; } else { timer . start ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "tran ctx is not global, so started timer immediately." ) ; } } }
Add the input non - persistent timer to the queue of timers to be started upon commit of the global transaction . If not in a global transaction start the timer immediately .