@midwayjs/coreClassesServiceFactoryVersion: NextSur cette pageabstractServiceFactory <T>多客户端工厂实现HierarchyServiceFactoryMidwayLoggerServiceImplementsIServiceFactory<T>Index ConstructorsconstructorMethodscreateInstancegetgetClientKeysgetClientPrioritygetClientsgetDefaultClientNamegetNamehasisHighPriorityisLowPriorityisMediumPrioritystopConstructors constructornew ServiceFactory<T>(): ServiceFactory<T>Type parametersTMethods publiccreateInstancecreateInstance(config: any, clientName?: any): Promise<T>publicgetget<U>(id?: string): UType parametersU = TpublicgetClientKeysgetClientKeys(): string[]publicgetClientPrioritygetClientPriority(name: string): stringpublicgetClientsgetClients(): Map<string, T>publicgetDefaultClientNamegetDefaultClientName(): stringpublicabstractgetNamegetName(): stringpublichashas(id: string): booleanpublicisHighPriorityisHighPriority(name: string): booleanpublicisLowPriorityisLowPriority(name: string): booleanpublicisMediumPriorityisMediumPriority(name: string): booleanpublicstopstop(): Promise<void>
多客户端工厂实现