public synchronized void stopInactivityTimer ( ) { final boolean traceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( traceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "stopInactivityTimer" ) ; if ( _inactivityTimerActive ) { _inactivityTimerActive = false ; EmbeddableTimeoutManager . setTimeout ( this , EmbeddableTimeoutManager . INACTIVITY_TIMEOUT , 0 ) ; } // The inactivity timer's being stopped so the transaction is // back on-server. Push the thread that it's running on onto // the stack. _mostRecentThread . push ( Thread . currentThread ( ) ) ; if ( traceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "stopInactivityTimer" ) ; }
Stop inactivity timer associated with transaction . This method needs to be synchronized to serialize with inactivity timeout . If the timeout runs after this method then there will be no _inactivityTimer to call and the context will be on_server . If the timeout runs before then a subsequent resume will fail as the transaction will be rolled back .