2023-11-03 11:22:54 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-11-03 11:22:54 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace OCP\TextProcessing;
|
|
|
|
|
|
|
|
|
|
/**
|
2023-11-07 06:02:03 -05:00
|
|
|
* This interface allows the system to learn the provider's expected runtime
|
2023-11-03 11:22:54 -04:00
|
|
|
* @since 28.0.0
|
|
|
|
|
* @template T of ITaskType
|
|
|
|
|
* @template-extends IProvider<T>
|
2024-07-26 05:20:46 -04:00
|
|
|
* @deprecated 30.0.0
|
2023-11-03 11:22:54 -04:00
|
|
|
*/
|
2023-11-07 06:02:03 -05:00
|
|
|
interface IProviderWithExpectedRuntime extends IProvider {
|
2023-11-03 11:22:54 -04:00
|
|
|
/**
|
|
|
|
|
* @return int The expected average runtime of a task in seconds
|
|
|
|
|
* @since 28.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getExpectedRuntime(): int;
|
|
|
|
|
}
|