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 Details
-
batchSize
private final int batchSizeBatch size to enforce.
-
-
Constructor Details
-
BatchHandler
public BatchHandler(int size) Creates a new batch processor.- Parameters:
size- batch size
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<List<List<AttributeModification>>,List<List<AttributeModification>>>
-