public final class ChangeSourceContext extends Object
UpdateOptions| Modifier and Type | Method and Description |
|---|---|
static Change.Source<? extends Change.Batch> |
buildChangeSource(UpdateOptions options,
Instant startTime,
WikibaseRepository wikibaseRepository,
RdfClient rdfClient,
URI root,
com.codahale.metrics.MetricRegistry metricRegistry)
Build a change source.
|
static Instant |
getStartTime(Instant startInstant,
RdfRepository rdfRepository,
boolean init)
Determine instant from which to start polling.
|
@Nonnull public static Change.Source<? extends Change.Batch> buildChangeSource(UpdateOptions options, Instant startTime, WikibaseRepository wikibaseRepository, RdfClient rdfClient, URI root, com.codahale.metrics.MetricRegistry metricRegistry)
IllegalArgumentException - if the options are invalidIllegalStateException - if the left off date is too ancient@Nonnull public static Instant getStartTime(Instant startInstant, RdfRepository rdfRepository, boolean init)
startInstant - Instant passed from command-linerdfRepository - RDF repository that may contain the timestamp we left off last timeinit - Should we record the initial instant to the repository?Copyright © 2019. All rights reserved.