Méthode |
Description |
|
addServer ( string $url, integer $weight = null ) : void |
Adds server |
|
detach ( object $conn ) : void |
Detach Connection |
|
detachConnFromUrl ( ClientConnection $conn, string $url ) : void |
Detaches connection from URL |
|
getConnection ( string $url = null, callback $cb = null, integer $pri ) : boolean |
Returns available connection from the pool |
|
getConnectionByKey ( string $key, callable $cb = null ) : boolean |
Returns available connection from the pool by key |
|
getConnectionRR ( callable $cb = null ) : boolean |
Returns available connection from the pool |
|
markConnBusy ( ClientConnection $conn, string $url ) : void |
Mark connection as busy |
|
markConnFree ( ClientConnection $conn, string $url ) : void |
Mark connection as free |
|
onShutdown ( boolean $graceful = false ) : boolean |
Called when application instance is going to shutdown |
|
requestByKey ( string $key, string $data, callable $onResponse = null ) : boolean |
Sends a request to server according to the key |
|
requestByServer ( string $server, string $data, callable $onResponse = null ) : boolean |
Sends a request to arbitrary server |
|
touchPending ( string $url ) : void |
Touch pending "requests for connection" |
|