minos.plugins.aiopg.factories.common.locks

Classes

AiopgLockDatabaseOperationFactory

Aiopg Lock Database Operation Factory class.

class AiopgLockDatabaseOperationFactory[source]

Bases: LockDatabaseOperationFactory

Aiopg Lock Database Operation Factory class.

build_acquire(hashed_key)[source]

Build the database operation to acquire the lock.

Parameters

hashed_key (int) – The hashed key that identifies the lock.

Returns

A DatabaseOperation instance.

Return type

DatabaseOperation

build_release(hashed_key)[source]

Build the database operation to release the lock.

Parameters

hashed_key (int) – The hashed key that identifies the lock.

Returns

A DatabaseOperation instance.

Return type

DatabaseOperation