AppserverIo\Appserver\ServletEngine\StandardGarbageCollector::iterate PHP Method

iterate() public method

This is invoked on every iteration of the daemons while() loop.
public iterate ( integer $timeout ) : void
$timeout integer The timeout before the daemon wakes up
return void
    public function iterate($timeout)
    {
        // call parent method and sleep for the default timeout
        parent::iterate($timeout);
        // collect the session garbage
        $this->collectGarbage();
        // profile the size of the sessions
        if ($profileLogger = $this->getProfileLogger()) {
            $profileLogger->info('Successfull collect garbage for the servlet engine\'s session manager');
        }
    }