com.noenv.wiremongo.command.bulkwrite.BulkWriteWithOptionsCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vertx-wiremongo Show documentation
Show all versions of vertx-wiremongo Show documentation
Lightweight mongo mocking for Vert.x
package com.noenv.wiremongo.command.bulkwrite;
import io.vertx.ext.mongo.BulkOperation;
import io.vertx.ext.mongo.BulkWriteOptions;
import java.util.List;
public class BulkWriteWithOptionsCommand extends BulkWriteBaseCommand {
private final BulkWriteOptions options;
public BulkWriteWithOptionsCommand(String collection, List operations, BulkWriteOptions options) {
super("bulkWriteWithOptions", collection, operations);
this.options = options;
}
public BulkWriteOptions getOptions() {
return options;
}
@Override
public String toString() {
return super.toString() + ", options: " + (options != null ? options.toJson().encode() : "null");
}
}