Expose withAsyncIndexing name variant in Jcr builder
@@ -244,13 +244,24 @@ public class Jcr {
return this;
}
+ /**
+ * @deprecated Use {@link #withAsyncIndexing(String, long)} instead
+ */
@Nonnull
+ @Deprecated
public Jcr withAsyncIndexing() {
ensureRepositoryIsNotCreated();
oak.withAsyncIndexing();
return this;
}
+ @Nonnull
+ public Jcr withAsyncIndexing(@Nonnull String name, long delayInSeconds) {
+ ensureRepositoryIsNotCreated();
+ oak.withAsyncIndexing(name, delayInSeconds);
+ return this;
+ }
+
@Nonnull
public Jcr withObservationQueueLength(int observationQueueLength) {
ensureRepositoryIsNotCreated();
