public void stopTimer ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stopTimer" ) ; btmLockManager . lockExclusive ( ) ; try { //only stop if we are currently started if ( ! isStopped ) { //set stopped to true isStopped = true ; //iterate over the entries in the active list LinkedListEntry entry = ( LinkedListEntry ) activeEntries . getFirst ( ) ; while ( entry != null && activeEntries . contains ( entry ) ) { //cancel the alarm for each one if ( entry . alarm != null ) { entry . alarm . cancel ( ) ; entry . alarm = null ; } entry = ( LinkedListEntry ) entry . getNext ( ) ; } } } finally { btmLockManager . unlockExclusive ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "stopTimer" ) ; }
Stop the BatchedTimeoutManager