Class SequentialBulkExecutor<T,C extends HasUser>

java.lang.Object
org.graylog2.rest.bulk.SequentialBulkExecutor<T,C>
All Implemented Interfaces:
BulkExecutor<T,C>

public class SequentialBulkExecutor<T,C extends HasUser> extends Object implements BulkExecutor<T,C>
Implementation of BulkExecutor that executes bulk operation on entities sequentially, one at a time, using provided SingleEntityOperationExecutor. It is meant for those type of operations on entities that are very hard to be executed with single MongoDB query in a single request, as many additional checks are to be performed on the fetched entity in order to decide if it is legal to remove it at all. It is unfortunate that it introduces a (N+1) problem, but preparing more complex solution would require extreme changes to current architecture.