Package org.ldaptive.ext
Class MergeRequest.BatchHandler
- java.lang.Object
-
- org.ldaptive.ext.MergeRequest.BatchHandler
-
- All Implemented Interfaces:
Function<List<List<AttributeModification>>,List<List<AttributeModification>>>
,MergeRequest.AttributeModificationsHandler
- Enclosing class:
- MergeRequest
public static class MergeRequest.BatchHandler extends Object implements MergeRequest.AttributeModificationsHandler
Processes attribute modifications so that any list of attribute modifications does not exceed the configured batch size. For a provided matrix of 1x10 with batch size of 5, would result in a matrix of 2x5. This would result in the merge operation performing two modifies, each with five attribute modifications.
-
-
Field Summary
Fields Modifier and Type Field Description private int
batchSize
Batch size to enforce.
-
Constructor Summary
Constructors Constructor Description BatchHandler(int size)
Creates a new batch processor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<List<AttributeModification>>
apply(List<List<AttributeModification>> modifications)
-
-
-
Method Detail
-
apply
public List<List<AttributeModification>> apply(List<List<AttributeModification>> modifications)
- Specified by:
apply
in interfaceFunction<List<List<AttributeModification>>,List<List<AttributeModification>>>
-
-