Method | Description | |
---|---|---|
checkin ( resource $resource ) : self | Return a previously checked-out socket to the pool | |
checkout ( string $uri, array $options = [] ) : Amp\Promise | Checkout a socket from the specified URI authority | |
clear ( resource $resource ) : self | Remove the specified socket from the pool | |
setOption ( integer $option, mixed $value ) : self | Set socket pool options |
Method | Description | |
---|---|---|
allowsNewConnection ( $uri, $options ) | ||
checkoutExistingSocket ( $uri, $options ) | ||
checkoutNewSocket ( $uri, $options ) | ||
dequeueNextWaitingSocket ( $uri ) | ||
finalizeNewConnection ( Amp\Deferred $promisor, $uri, $socket, $options ) | ||
finalizeSocketCheckin ( $uri, $socketId ) | ||
initializeIdleTimeout ( Amp\Artax\SocketPoolStruct $poolStruct ) | ||
initializeNewConnection ( Amp\Deferred $promisor, $uri, $options ) | ||
isSocketDead ( $resource ) | ||
unloadSocket ( $uri, $socketId ) |
public checkin ( resource $resource ) : self | ||
$resource | resource | |
return | self |
public clear ( resource $resource ) : self | ||
$resource | resource | |
return | self |