com.phloxui
Version:
PhloxUI Ng2+ Framework
50 lines (49 loc) • 2.05 kB
TypeScript
import { IBackgroundProcessManager } from '../share/IBackgroundProcessManager';
import { BackgroundProcess } from '../share/model/BackgroundProcess';
import { ObservableManager } from './ObservableManager.service';
/**
* <p style="text-indent: 2em;">
* A <code>ng</code> service class providing <code>background process</code> execution machanism. This class is an implementation of
* [[IBackgroundProcessManager]]. So, please see [[IBackgroundProcessManager]] for more information.
* </p>
*
* @see [[IBackgroundProcessManager]]
* @see [[BackgroundProcess]]
*
* @author shiorin, tee4cute
*/
export declare class BackgroundProcessManager implements IBackgroundProcessManager {
static readonly PROCESS_START_TOPIC_NAME: string;
static readonly PROCESS_END_TOPIC_NAME: string;
static readonly PROCESS_ERROR_TOPIC_NAME: string;
private processesPool;
private obsvMgr;
constructor(obsvMgr: ObservableManager);
private getWrapperProcess(processFunc, processType?, name?, option?);
private isMatchAllOptions(bgProcess, options);
/**
* <p style="text-indent: 1em;">
* Please see [[IBackgroundProcessManager.execute]] for more information.
* </p>
*
* @see [[IBackgroundProcessManager.execute]]
*/
execute(processFunc: Function, options?: any): Promise<any>;
/**
* <p style="text-indent: 1em;">
* Please see [[IBackgroundProcessManager.getRunningProcessesCount]] for more information.
* </p>
*
* @see [[IBackgroundProcessManager.getRunningProcessesCount]]
*/
getRunningProcessesCount(typeName: string, name: string, options?: any): number;
/**
* <p style="text-indent: 1em;">
* Please see [[IBackgroundProcessManager.getRunningProcesses]] for more information. This method returns
* an array of process model class [[BackgroundProcess]].
* </p>
*
* @see [[IBackgroundProcessManager.getRunningProcesses]]
*/
getRunningProcesses(typeName: string, name: string, options?: any): BackgroundProcess[];
}