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

Breadcrumb

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

function LockInterface::refresh

Increase the duration of an acquired lock.

Parameters

float|null $ttl Maximum expected lock duration in seconds:

Throws

LockConflictedException If the lock is acquired by someone else

LockAcquiringException If the lock cannot be refreshed

2 methods override LockInterface::refresh()
Lock::refresh in vendor/symfony/lock/Lock.php
Increase the duration of an acquired lock.
NoLock::refresh in vendor/symfony/lock/NoLock.php
Increase the duration of an acquired lock.

File

vendor/symfony/lock/LockInterface.php, line 42

Class

LockInterface
LockInterface defines an interface to manipulate the status of a lock.

Namespace

Symfony\Component\Lock

Code

public function refresh(?float $ttl = null) : void;

API Navigation

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