Property | Type | Description | |
---|---|---|---|
$conn | |||
$pool | |||
$socketurl |
Method | Description | |
---|---|---|
ensureConnection ( ) | ||
getSocketUrl ( ) | ||
importFile ( $workerId, $path ) : boolean | ||
init ( ) : void | Constructor. | |
onShutdown ( boolean $graceful = false ) : boolean | Called when application instance is going to shutdown. | |
sendBroadcastCall ( $appInstance, $method, array $args = [], callable $cb = null ) | ||
sendDirectCall ( $workerId, $appInstance, $method, array $args = [], callable $cb = null ) | ||
sendPacket ( $packet = null ) | ||
sendSingleCall ( $appInstance, $method, array $args = [], callable $cb = null ) | ||
updatedWorkers ( ) |
Method | Description | |
---|---|---|
getConfigDefaults ( ) : array | boolean | Setting default config options Overriden from AppInstance::getConfigDefaults |
protected getConfigDefaults ( ) : array | boolean | ||
return | array | boolean |
public importFile ( $workerId, $path ) : boolean | ||
$workerId | ||
$path | ||
return | boolean |
public onShutdown ( boolean $graceful = false ) : boolean | ||
$graceful | boolean | |
return | boolean | Ready to shutdown? |
public sendBroadcastCall ( $appInstance, $method, array $args = [], callable $cb = null ) | ||
$appInstance | ||
$method | ||
$args | array | |
$cb | callable |
public sendDirectCall ( $workerId, $appInstance, $method, array $args = [], callable $cb = null ) | ||
$workerId | ||
$appInstance | ||
$method | ||
$args | array | |
$cb | callable |
public sendSingleCall ( $appInstance, $method, array $args = [], callable $cb = null ) | ||
$appInstance | ||
$method | ||
$args | array | |
$cb | callable |