Interface MaxSegmentProvider
Functional interface returning the maximum amount of segments a
Coordinator may claim, based on the given
processorName.- Since:
- 4.10.0
- Author:
- Manish
-
Method Summary
Modifier and TypeMethodDescriptiondefault IntegerReturns the maximum amount of segments to claim for the givenprocessorName.intgetMaxSegments(String processorName) Returns the maximum amount of segments to claim for the givenprocessorName.static MaxSegmentProvidermaxShort()AMaxSegmentProviderthat always returnsShort.MAX_VALUE.
-
Method Details
-
getMaxSegments
Returns the maximum amount of segments to claim for the givenprocessorName.- Parameters:
processorName- The name of the processor for which to provide the maximum amount of segments it can claim.- Returns:
- The maximum number of segments that can be claimed for the given
processorName.
-
apply
Returns the maximum amount of segments to claim for the givenprocessorName. -
maxShort
AMaxSegmentProviderthat always returnsShort.MAX_VALUE.- Returns:
- A
MaxSegmentProviderthat always returnsShort.MAX_VALUE.
-