class TotalSucceededStatistic in Purge 8.3
Total number of succeeded queue items.
Hierarchy
- class \Drupal\purge\Counter\Counter implements CounterInterface
- class \Drupal\purge\Plugin\Purge\Queue\TotalSucceededStatistic implements ExplainedCounterInterface uses StringTranslationTrait
Expanded class hierarchy of TotalSucceededStatistic
File
- src/
Plugin/ Purge/ Queue/ TotalSucceededStatistic.php, line 12
Namespace
Drupal\purge\Plugin\Purge\QueueView source
class TotalSucceededStatistic extends Counter implements ExplainedCounterInterface {
use StringTranslationTrait;
/**
* {@inheritdoc}
*/
public function __construct($value = 0.0) {
parent::__construct($value);
$this
->disableDecrement();
}
/**
* {@inheritdoc}
*/
public function getId() {
return 'total_succeeded';
}
/**
* {@inheritdoc}
*/
public function getTitle() {
return $this
->t('Total number of succeeded queue items.');
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return $this
->t('When queue items are successfully processed, they are deleted from the queue to make space for new items. This statistic represents all of the successful cache invalidations that happened over time.');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Counter:: |
protected | property | The callback that is called on writes when not NULL. | |
Counter:: |
protected | property | Whether it is possible to call ::decrement() or not. | |
Counter:: |
protected | property | Whether it is possible to call ::increment() or not. | |
Counter:: |
protected | property | Whether it is possible to call ::set() or not. | |
Counter:: |
protected | property | The value of the counter. | |
Counter:: |
public | function |
Decrease the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Disable the possibility to decrement the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Disable the possibility to increment the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Disable the possibility of setting counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Get the current value. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Get the current value as integer. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Increase the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Overwrite the counter value. Overrides CounterInterface:: |
|
Counter:: |
protected | function | Overwrite the counter value (permission bypass). | |
Counter:: |
public | function |
Set the callback that gets called when writes occur. Overrides CounterInterface:: |
|
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TotalSucceededStatistic:: |
public | function |
Gets the description of the counter. Overrides ExplainedCounterInterface:: |
|
TotalSucceededStatistic:: |
public | function |
Gets a short machine readable ID. Overrides ExplainedCounterInterface:: |
|
TotalSucceededStatistic:: |
public | function |
Gets the title of the counter. Overrides ExplainedCounterInterface:: |
|
TotalSucceededStatistic:: |
public | function |
Construct a counter object. Overrides Counter:: |