2 // @codingStandardsIgnoreFile
5 * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Lock\DatabaseLockBackend' "core/lib/Drupal/Core".
8 namespace Drupal\Core\ProxyClass\Lock {
11 * Provides a proxy class for \Drupal\Core\Lock\DatabaseLockBackend.
13 * @see \Drupal\Component\ProxyBuilder
15 class DatabaseLockBackend implements \Drupal\Core\Lock\LockBackendInterface
18 use \Drupal\Core\DependencyInjection\DependencySerializationTrait;
21 * The id of the original proxied service.
25 protected $drupalProxyOriginalServiceId;
28 * The real proxied service, after it was lazy loaded.
30 * @var \Drupal\Core\Lock\DatabaseLockBackend
35 * The service container.
37 * @var \Symfony\Component\DependencyInjection\ContainerInterface
42 * Constructs a ProxyClass Drupal proxy object.
44 * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
46 * @param string $drupal_proxy_original_service_id
47 * The service ID of the original service.
49 public function __construct(\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id)
51 $this->container = $container;
52 $this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id;
56 * Lazy loads the real service from the container.
59 * Returns the constructed real service.
61 protected function lazyLoadItself()
63 if (!isset($this->service)) {
64 $this->service = $this->container->get($this->drupalProxyOriginalServiceId);
67 return $this->service;
73 public function acquire($name, $timeout = 30)
75 return $this->lazyLoadItself()->acquire($name, $timeout);
81 public function lockMayBeAvailable($name)
83 return $this->lazyLoadItself()->lockMayBeAvailable($name);
89 public function release($name)
91 return $this->lazyLoadItself()->release($name);
97 public function releaseAll($lock_id = NULL)
99 return $this->lazyLoadItself()->releaseAll($lock_id);
105 public function schemaDefinition()
107 return $this->lazyLoadItself()->schemaDefinition();
113 public function wait($name, $delay = 30)
115 return $this->lazyLoadItself()->wait($name, $delay);
121 public function getLockId()
123 return $this->lazyLoadItself()->getLockId();