Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mark classes as final and methods and properties as private
- Loading branch information
Showing
16 changed files
with
114 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Http\Client\Common\HttpClientPool; | ||
|
||
use Http\Client\HttpAsyncClient; | ||
use Http\Client\HttpClient; | ||
|
||
/** | ||
* A HttpClientPoolItem represent a HttpClient inside a Pool. | ||
* | ||
* It is disabled when a request failed and can be reenabled after a certain number of seconds. | ||
* It also keep tracks of the current number of open requests the client is currently being sending | ||
* (only usable for async method). | ||
* | ||
* @author Joel Wurtz <joel.wurtz@gmail.com> | ||
*/ | ||
interface HttpClientPoolItem extends HttpClient, HttpAsyncClient | ||
{ | ||
/** | ||
* Whether this client is disabled or not. | ||
* | ||
* Will also reactivate this client if possible | ||
* | ||
* @internal | ||
* | ||
* @return bool | ||
*/ | ||
public function isDisabled(); | ||
|
||
/** | ||
* Get current number of request that are currently being sent by the underlying HTTP client. | ||
* | ||
* @internal | ||
* | ||
* @return int | ||
*/ | ||
public function getSendingRequestCount(); | ||
} |
Oops, something went wrong.