@midwayjs/kafkaClassesKafkaProducerFactoryVersion: NextSur cette pageKafkaProducerFactory HierarchyServiceFactory<Producer>KafkaProducerFactoryIndex ConstructorsconstructorPropertiesloggerpubConfigMethodscreateInstancedestroydestroyClientgetgetClientKeysgetClientPrioritygetClientsgetDefaultClientNamegetNamehasinitisHighPriorityisLowPriorityisMediumPrioritystopConstructors constructornew KafkaProducerFactory(): KafkaProducerFactoryProperties loggerlogger: ILoggerpubConfigpubConfig: ServiceFactoryConfigOption<IMidwayKafkaProducerInitOptions>Methods createInstancecreateInstance(config: any, clientName?: any): Promise<Producer>destroydestroy(): Promise<void>destroyClientdestroyClient(producer: Producer, name: string): Promise<void>getget<U>(id?: string): UType parametersU = ProducergetClientKeysgetClientKeys(): string[]getClientPrioritygetClientPriority(name: string): stringgetClientsgetClients(): Map<string, Producer>getDefaultClientNamegetDefaultClientName(): stringgetNamegetName(): stringhashas(id: string): booleaninitinit(): Promise<void>isHighPriorityisHighPriority(name: string): booleanisLowPriorityisLowPriority(name: string): booleanisMediumPriorityisMediumPriority(name: string): booleanstopstop(): Promise<void>