PHP Класс AppserverIo\Appserver\ServletEngine\StandardGarbageCollector

Автор: Tim Wagner ([email protected])
Наследование: extends AppserverIo\Appserver\Core\AbstractDaemonThread, implements AppserverIo\Appserver\ServletEngine\GarbageCollectorInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
bootstrap ( ) : void This method will be invoked before the while() loop starts and can be used to implement some bootstrap functionality.
collectGarbage ( ) : integer Collects the session garbage.
getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface Return's the application instance.
getDefaultTimeout ( ) : integer Returns the default timeout.
getLogger ( string $loggerName ) : Psr\Log\LoggerInterface | null Return's the logger with the requested name. First we look in the application and then in the system itself.
getProfileLogger ( ) : Psr\Log\LoggerInterface | null Return's the profile logger instance.
getSessionSettings ( ) : AppserverIo\Appserver\ServletEngine\SessionSettingsInterface Returns the session settings.
getSystemLogger ( ) : Psr\Log\LoggerInterface | null Return's the system logger instance.
initialize ( ) : void Initializes and starts the garbage collector.
injectApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Injects the application instance.
injectSessionSettings ( AppserverIo\Appserver\ServletEngine\SessionSettingsInterface $sessionSettings ) : void Injects the session settings.
iterate ( integer $timeout ) : void This is invoked on every iteration of the daemons while() loop.

Описание методов

bootstrap() публичный метод

This method will be invoked before the while() loop starts and can be used to implement some bootstrap functionality.
public bootstrap ( ) : void
Результат void

collectGarbage() публичный метод

Collects the session garbage.
public collectGarbage ( ) : integer
Результат integer The number of expired and removed sessions

getApplication() публичный метод

Return's the application instance.
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface
Результат AppserverIo\Psr\Application\ApplicationInterface The application instance

getDefaultTimeout() публичный метод

Returns the default timeout.
public getDefaultTimeout ( ) : integer
Результат integer The default timeout in microseconds

getLogger() публичный метод

Return's the logger with the requested name. First we look in the application and then in the system itself.
public getLogger ( string $loggerName ) : Psr\Log\LoggerInterface | null
$loggerName string The name of the logger to return
Результат Psr\Log\LoggerInterface | null The logger with the requested name

getProfileLogger() публичный метод

Return's the profile logger instance.
public getProfileLogger ( ) : Psr\Log\LoggerInterface | null
Результат Psr\Log\LoggerInterface | null The profile logger insatnce

getSessionSettings() публичный метод

Returns the session settings.
public getSessionSettings ( ) : AppserverIo\Appserver\ServletEngine\SessionSettingsInterface
Результат AppserverIo\Appserver\ServletEngine\SessionSettingsInterface The session settings

getSystemLogger() публичный метод

Return's the system logger instance.
public getSystemLogger ( ) : Psr\Log\LoggerInterface | null
Результат Psr\Log\LoggerInterface | null The system logger insatnce

initialize() публичный метод

Initializes and starts the garbage collector.
public initialize ( ) : void
Результат void

injectApplication() публичный метод

Injects the application instance.
public injectApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
Результат void

injectSessionSettings() публичный метод

Injects the session settings.
public injectSessionSettings ( AppserverIo\Appserver\ServletEngine\SessionSettingsInterface $sessionSettings ) : void
$sessionSettings AppserverIo\Appserver\ServletEngine\SessionSettingsInterface Settings for the session handling
Результат void

iterate() публичный метод

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
Результат void