跳到主要内容
版本:Next

KafkaAdminFactory

Hierarchy

  • ServiceFactory<Admin>
    • KafkaAdminFactory

Index

Constructors

constructor

Properties

adminConfig

adminConfig: ServiceFactoryConfigOption<IMidwayKafkaProducerInitOptions>

logger

logger: ILogger

Methods

createInstance

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

destroy

  • destroy(): Promise<void>

destroyClient

  • destroyClient(admin: Admin, name: string): Promise<void>

get

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

    • U = Admin

getClientKeys

  • getClientKeys(): string[]

getClientPriority

  • getClientPriority(name: string): string

getClients

  • getClients(): Map<string, Admin>

getDefaultClientName

  • getDefaultClientName(): string

getName

  • getName(): string

has

  • has(id: string): boolean

init

  • init(): Promise<void>

isHighPriority

  • isHighPriority(name: string): boolean

isLowPriority

  • isLowPriority(name: string): boolean

isMediumPriority

  • isMediumPriority(name: string): boolean

stop

  • stop(): Promise<void>