public boolean toStopping ( ) { LifecycleState state ; synchronized ( this ) { state = _state ; if ( state . isAfterStopping ( ) || state . isStarting ( ) ) { return false ; } _state = STOPPING ; _lastChangeTime = CurrentTime . currentTime ( ) ; } if ( _log != null && _log . isLoggable ( _level ) ) { _log . log ( _level , "stopping " + _name ) ; } notifyListeners ( state , STOPPING ) ; return true ; }
Changes to the stopping state .