PHP 클래스 AppserverIo\Appserver\PersistenceContainer\StandardGarbageCollector

상속: extends AppserverIo\Appserver\Core\AbstractDaemonThread
파일 보기 프로젝트 열기: 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 ( ) : 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