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

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

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

Метод Описание
bootstrap ( ) : void This method will be invoked before the while() loop starts and can be used to implement some bootstrap functionality.
collectGarbage ( ) : void Collects the SFSBs that has been timed out
getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface Returns the application instance.
injectApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Injects the application instance.
iterate ( integer $timeout ) : void This is invoked on every iteration of the daemons while() loop.
log ( mixed $level, string $message, array $context = [] ) : void This is a very basic method to log some stuff by using the error_log() method of PHP.

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

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 SFSBs that has been timed out
public collectGarbage ( ) : void
Результат void

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

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

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

Injects the application instance.
public injectApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
Результат 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

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

This is a very basic method to log some stuff by using the error_log() method of PHP.
public log ( mixed $level, string $message, array $context = [] ) : void
$level mixed The log level to use
$message string The message we want to log
$context array The context we of the message
Результат void