跳到主要内容
版本:Next

abstractServiceFactory <T>

多客户端工厂实现

Hierarchy

Implements

Index

Constructors

constructor

  • Type parameters

    • T

Methods

publiccreateInstance

  • createInstance(config: any, clientName?: any): Promise<T>

publicget

  • get<U>(id?: string): U
  • Type parameters

    • U = T

publicgetClientKeys

  • getClientKeys(): string[]

publicgetClientPriority

  • getClientPriority(name: string): string

publicgetClients

  • getClients(): Map<string, T>

publicgetDefaultClientName

  • getDefaultClientName(): string

publicabstractgetName

  • getName(): string

publichas

  • has(id: string): boolean

publicisHighPriority

  • isHighPriority(name: string): boolean

publicisLowPriority

  • isLowPriority(name: string): boolean

publicisMediumPriority

  • isMediumPriority(name: string): boolean

publicstop

  • stop(): Promise<void>