@midwayjs/bootstrapClassesClusterManagerVersion: NextSur cette pageClusterManager HierarchyAbstractForkManager<Worker, ClusterOptions>ClusterManagerIndex ConstructorsconstructorPropertiesoptionsMethodsbindWorkerDisconnectbindWorkerExitcloseWorkercreateEventBuscreateWorkergetWorkergetWorkerIdgetWorkerIdshasWorkerisPrimaryisWorkerDeadonStopstartstopConstructors constructornew ClusterManager(options?: ClusterOptions): ClusterManagerProperties readonlyoptionsoptions: ClusterOptions = {}Methods bindWorkerDisconnectbindWorkerDisconnect(listener: (worker: Worker) => void): voidbindWorkerExitbindWorkerExit(listener: (worker: Worker, code: any, signal: any) => void): voidcloseWorkercloseWorker(worker: Worker): voidcreateEventBuscreateEventBus(options: any): anycreateWorkercreateWorker(): anypublicgetWorkergetWorker(workerId: string): WorkergetWorkerIdgetWorkerId(worker: Worker): stringpublicgetWorkerIdsgetWorkerIds(): string[]publichasWorkerhasWorker(workerId: string): booleanisPrimaryisPrimary(): booleanisWorkerDeadisWorkerDead(worker: Worker): booleanpubliconStoponStop(exitListener: any): voidpublicstartstart(): Promise<void>publicstopstop(timeout?: number): Promise<void>