프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$conn | |||
$pool | |||
$socketurl |
메소드 | 설명 | |
---|---|---|
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 ( ) |
메소드 | 설명 | |
---|---|---|
getConfigDefaults ( ) : array | boolean | Setting default config options Overriden from AppInstance::getConfigDefaults |
protected getConfigDefaults ( ) : array | boolean | ||
리턴 | array | boolean |
public onShutdown ( boolean $graceful = false ) : boolean | ||
$graceful | boolean | |
리턴 | 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 |