function StrategyInterface::canBeMet
Returns whether or not the quorum *could* be met.
This method does not mean the quorum *would* be met for sure, but can be useful to stop a process early when you known there is no chance to meet the quorum.
2 methods override StrategyInterface::canBeMet()
- ConsensusStrategy::canBeMet in vendor/
symfony/ lock/ Strategy/ ConsensusStrategy.php - Returns whether or not the quorum *could* be met.
- UnanimousStrategy::canBeMet in vendor/
symfony/ lock/ Strategy/ UnanimousStrategy.php - Returns whether or not the quorum *could* be met.
File
-
vendor/
symfony/ lock/ Strategy/ StrategyInterface.php, line 32
Class
- StrategyInterface
- StrategyInterface defines an interface to indicate when a quorum is met and can be met.
Namespace
Symfony\Component\Lock\StrategyCode
public function canBeMet(int $numberOfFailure, int $numberOfItems) : bool;