Class AzureEventHubsMessagingAutoConfiguration.EventHubsTemplateConfiguration

java.lang.Object
com.azure.spring.cloud.autoconfigure.eventhubs.AzureEventHubsMessagingAutoConfiguration.EventHubsTemplateConfiguration
Enclosing class:
AzureEventHubsMessagingAutoConfiguration

@Configuration(proxyBeanMethods=false) public static class AzureEventHubsMessagingAutoConfiguration.EventHubsTemplateConfiguration extends Object
Configure the EventHubsTemplate
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.azure.spring.messaging.eventhubs.core.EventHubsProducerFactory
    defaultEventHubsNamespaceProducerFactory(com.azure.spring.messaging.eventhubs.core.properties.NamespaceProperties properties, org.springframework.beans.factory.ObjectProvider<com.azure.spring.messaging.PropertiesSupplier<String,com.azure.spring.messaging.eventhubs.core.properties.ProducerProperties>> suppliers)
    Creates a default Event Hubs namespace producer factory.
    com.azure.spring.messaging.eventhubs.support.converter.EventHubsMessageConverter
    Creates an Event Hubs message converter.
    com.azure.spring.messaging.eventhubs.core.EventHubsTemplate
    eventHubsTemplate(com.azure.spring.messaging.eventhubs.core.EventHubsProducerFactory producerFactory, com.azure.spring.messaging.eventhubs.support.converter.EventHubsMessageConverter messageConverter)
    Creates an Event Hubs template.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EventHubsTemplateConfiguration

      public EventHubsTemplateConfiguration()
  • Method Details

    • defaultEventHubsNamespaceProducerFactory

      @Bean @ConditionalOnMissingBean public com.azure.spring.messaging.eventhubs.core.EventHubsProducerFactory defaultEventHubsNamespaceProducerFactory(com.azure.spring.messaging.eventhubs.core.properties.NamespaceProperties properties, org.springframework.beans.factory.ObjectProvider<com.azure.spring.messaging.PropertiesSupplier<String,com.azure.spring.messaging.eventhubs.core.properties.ProducerProperties>> suppliers)
      Creates a default Event Hubs namespace producer factory.
      Parameters:
      properties - Event Hubs namespace related properties.
      suppliers - Object provider suppliers.
      Returns:
      A default Event Hubs namespace producer factory.
    • eventHubsMessageConverter

      @Bean @ConditionalOnMissingBean public com.azure.spring.messaging.eventhubs.support.converter.EventHubsMessageConverter eventHubsMessageConverter()
      Creates an Event Hubs message converter.
      Returns:
      An Event Hubs message converter.
    • eventHubsTemplate

      @Bean @ConditionalOnMissingBean public com.azure.spring.messaging.eventhubs.core.EventHubsTemplate eventHubsTemplate(com.azure.spring.messaging.eventhubs.core.EventHubsProducerFactory producerFactory, com.azure.spring.messaging.eventhubs.support.converter.EventHubsMessageConverter messageConverter)
      Creates an Event Hubs template.
      Parameters:
      producerFactory - An Event Hubs producer factory.
      messageConverter - An Event Hubs message converter.
      Returns:
      An Event Hubs template.