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

Breadcrumb

  1. Drupal Core 11.1.x

NoopStalenessHandler.php

Namespace

OpenTelemetry\SDK\Metrics\StalenessHandler

File

vendor/open-telemetry/sdk/Metrics/StalenessHandler/NoopStalenessHandler.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\SDK\Metrics\StalenessHandler;

use Closure;
use OpenTelemetry\SDK\Metrics\ReferenceCounterInterface;
use OpenTelemetry\SDK\Metrics\StalenessHandlerInterface;

/**
 * @internal
 */
final class NoopStalenessHandler implements StalenessHandlerInterface, ReferenceCounterInterface {
    public function acquire(bool $persistent = false) : void {
        // no-op
    }
    public function release() : void {
        // no-op
    }
    public function onStale(Closure $callback) : void {
        // no-op
    }

}

Classes

Title Deprecated Summary
NoopStalenessHandler @internal
RSS feed
Powered by Drupal