mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 12:37:14 +01:00
23 lines
427 B
PHP
23 lines
427 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Xentral\Modules\SubscriptionCycle\Scheduler;
|
|
|
|
|
|
interface TaskMutexServiceInterface
|
|
{
|
|
/**
|
|
* @param string $parameter
|
|
* @param bool $active
|
|
*/
|
|
public function setMutex(string $parameter, bool $active = true): void;
|
|
|
|
/**
|
|
* @param string $parameter
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function isTaskInstanceRunning(string $parameter): bool;
|
|
}
|