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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the maximum number of events that will be in the batch.Get the max time duration to wait to receive an event before processing events.voidsetMaxSize(Integer maxSize) Set the max size.voidsetMaxWaitTime(Duration maxWaitTime) Set the max wait time.
-
Constructor Details
-
EventBatchProperties
public EventBatchProperties()Creates an instance ofEventBatchProperties.
-
-
Method Details
-
getMaxWaitTime
Description copied from interface:com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.EventBatchGet the max time duration to wait to receive an event before processing events.- Specified by:
getMaxWaitTimein interfacecom.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.EventBatch- Returns:
- the max wait time.
-
setMaxWaitTime
Set the max wait time.- Parameters:
maxWaitTime- The max wait time.
-
getMaxSize
Description copied from interface:com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.EventBatchGet the maximum number of events that will be in the batch.- Specified by:
getMaxSizein interfacecom.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.EventBatch- Returns:
- the max size.
-
setMaxSize
Set the max size.- Parameters:
maxSize- The max size.
-