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
-
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.void
setMaxSize
(Integer maxSize) Set the max size.void
setMaxWaitTime
(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.EventBatch
Get the max time duration to wait to receive an event before processing events.- Specified by:
getMaxWaitTime
in 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.EventBatch
Get the maximum number of events that will be in the batch.- Specified by:
getMaxSize
in interfacecom.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.EventBatch
- Returns:
- the max size.
-
setMaxSize
Set the max size.- Parameters:
maxSize
- The max size.
-