Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\Elastic\Connection\LockManager Class Reference

Public Member Functions

 __construct (Cache $cache)
 
 hasMaintenanceLock ()
 
 setMaintenanceLock ()
 
 setLock ( $type, $version)
 
 hasLock ( $type)
 
 getLock ( $type)
 
 releaseLock ( $type)
 

Public Attributes

const CACHE_NAMESPACE = 'smw:elastic'
 
const TYPE_LOCK = 'lock'
 
const TYPE_MAINTENANCE = 'maintenance'
 

Detailed Description

GNU GPL v2+

Since
3.1
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Elastic\Connection\LockManager::__construct ( Cache  $cache)
Since
3.1
Parameters
Cache$cache

Member Function Documentation

◆ getLock()

SMW\Elastic\Connection\LockManager::getLock (   $type)
Since
3.1
Parameters
string$type
Returns
mixed

◆ hasLock()

SMW\Elastic\Connection\LockManager::hasLock (   $type)
Since
3.1
Parameters
string$type
Returns
boolean

◆ hasMaintenanceLock()

SMW\Elastic\Connection\LockManager::hasMaintenanceLock ( )
Since
3.1

◆ releaseLock()

SMW\Elastic\Connection\LockManager::releaseLock (   $type)
Since
3.1
Parameters
string$type

◆ setLock()

SMW\Elastic\Connection\LockManager::setLock (   $type,
  $version 
)
Since
3.1
Parameters
string$type
string$version

◆ setMaintenanceLock()

SMW\Elastic\Connection\LockManager::setMaintenanceLock ( )
Since
3.1

Member Data Documentation

◆ CACHE_NAMESPACE

const SMW\Elastic\Connection\LockManager::CACHE_NAMESPACE = 'smw:elastic'

Identifies the cache namespace


The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy