sleep(period>1000?period:1000);
Thread.sleep(period>1000?period:1000);
        public void run()        {            int period=-1;            try{                while (isStarted())                {                    try {                        if (period!=_scavengePeriodMs)                        {                            if(Log.isDebugEnabled())Log.debug("Session scavenger period = "+_scavengePeriodMs/1000+"s");                            period=_scavengePeriodMs;                        }                        sleep(period>1000?period:1000);                        AbstractSessionManager.this.scavenge();                    }                    catch (InterruptedException ex){continue;}                    catch (Error e) {Log.warn(Log.EXCEPTION,e);}                    catch (Exception e) {Log.warn(Log.EXCEPTION,e);}                }            }            finally            {                AbstractSessionManager.this._scavenger=null;                Log.debug("Session scavenger exited");            }        }