@awesome-ecs/workers
Version:
The Workers package for Awesome ECS. Provides basic implementation for the Worker communication using ECS.
40 lines (33 loc) • 1.95 kB
text/typescript
import { ISystemMiddleware, ISystemContext } from '@awesome-ecs/abstract/systems';
import { WorkerThreadEntity } from '../entities/index.cjs';
import '@awesome-ecs/abstract/entities';
import '@awesome-ecs/core/entities';
import '../worker-type-comvmkQN.cjs';
import '../components/index.cjs';
import '@awesome-ecs/abstract/components';
declare class WorkerThreadHealthScheduleSystem implements ISystemMiddleware<WorkerThreadEntity> {
action(context: ISystemContext<WorkerThreadEntity>): void;
cleanup(context: ISystemContext<WorkerThreadEntity>): void;
}
declare class WorkerThreadMessageSubscriptionSystem implements ISystemMiddleware<WorkerThreadEntity> {
shouldRun(context: ISystemContext<WorkerThreadEntity>): boolean;
action(context: ISystemContext<WorkerThreadEntity>): void;
cleanup(context: ISystemContext<WorkerThreadEntity>): void;
}
declare class WorkerThreadHealthSubscriptionSystem implements ISystemMiddleware<WorkerThreadEntity> {
action(context: ISystemContext<WorkerThreadEntity>): void;
cleanup(context: ISystemContext<WorkerThreadEntity>): void;
}
declare class WorkerThreadHealthRequestSystem implements ISystemMiddleware<WorkerThreadEntity> {
private maxHeartbeatsPending;
shouldRun(context: ISystemContext<WorkerThreadEntity>): boolean;
action(context: ISystemContext<WorkerThreadEntity>): void;
cleanup(context: ISystemContext<WorkerThreadEntity>): void;
private sendHeartbeatMessage;
}
declare class WorkerThreadHealthResponseSystem implements ISystemMiddleware<WorkerThreadEntity> {
shouldRun(context: ISystemContext<WorkerThreadEntity>): boolean;
action(context: ISystemContext<WorkerThreadEntity>): void;
cleanup(context: ISystemContext<WorkerThreadEntity>): void;
}
export { WorkerThreadHealthRequestSystem, WorkerThreadHealthResponseSystem, WorkerThreadHealthScheduleSystem, WorkerThreadHealthSubscriptionSystem, WorkerThreadMessageSubscriptionSystem };