Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StrategyInterface.php

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\Strategy

Code

public function canBeMet(int $numberOfFailure, int $numberOfItems) : bool;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal