@midwayjs/coreClassesServiceFactory版本:Next本页总览abstractServiceFactory <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>
多客户端工厂实现