PHP 클래스 AppserverIo\Appserver\ServletEngine\StandardGarbageCollector

상속: extends AppserverIo\Appserver\Core\AbstractDaemonThread, implements AppserverIo\Appserver\ServletEngine\GarbageCollectorInterface
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

공개 메소드들

메소드 설명
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