Method | Description | |
---|---|---|
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. |
public collectGarbage ( ) : integer | ||
return | integer | The number of expired and removed sessions |
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface | ||
return | AppserverIo\Psr\Application\ApplicationInterface | The application instance |
public getDefaultTimeout ( ) : integer | ||
return | integer | The default timeout in microseconds |
public getProfileLogger ( ) : Psr\Log\LoggerInterface | null | ||
return | Psr\Log\LoggerInterface | null | The profile logger insatnce |
public getSessionSettings ( ) : AppserverIo\Appserver\ServletEngine\SessionSettingsInterface | ||
return | AppserverIo\Appserver\ServletEngine\SessionSettingsInterface | The session settings |
public getSystemLogger ( ) : Psr\Log\LoggerInterface | null | ||
return | Psr\Log\LoggerInterface | null | The system logger insatnce |
public initialize ( ) : void | ||
return | void |
public injectApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | ||
$application | AppserverIo\Psr\Application\ApplicationInterface | The application instance |
return | void |
public injectSessionSettings ( AppserverIo\Appserver\ServletEngine\SessionSettingsInterface $sessionSettings ) : void | ||
$sessionSettings | AppserverIo\Appserver\ServletEngine\SessionSettingsInterface | Settings for the session handling |
return | void |