Class EventBatchProperties

java.lang.Object
com.azure.spring.cloud.service.eventhubs.properties.EventBatchProperties
All Implemented Interfaces:
com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.EventBatch

public class EventBatchProperties extends Object implements com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.EventBatch
Event processor batch properties.
  • Constructor Details

  • Method Details

    • getMaxWaitTime

      public Duration getMaxWaitTime()
      Description copied from interface: com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.EventBatch
      Get the max time duration to wait to receive an event before processing events.
      Specified by:
      getMaxWaitTime in interface com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.EventBatch
      Returns:
      the max wait time.
    • setMaxWaitTime

      public void setMaxWaitTime(Duration maxWaitTime)
      Set the max wait time.
      Parameters:
      maxWaitTime - The max wait time.
    • getMaxSize

      public Integer getMaxSize()
      Description copied from interface: com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.EventBatch
      Get the maximum number of events that will be in the batch.
      Specified by:
      getMaxSize in interface com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.EventBatch
      Returns:
      the max size.
    • setMaxSize

      public void setMaxSize(Integer maxSize)
      Set the max size.
      Parameters:
      maxSize - The max size.