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 Constructor Description EventBatchProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetMaxSize()Get the maximum number of events that will be in the batch.DurationgetMaxWaitTime()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.
-
-
-
Method Detail
-
getMaxWaitTime
public Duration 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
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.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
public void setMaxSize(Integer maxSize)
Set the max size.- Parameters:
maxSize- The max size.
-
-