public class RecentChangesPoller extends Object implements Change.Source<RecentChangesPoller.Batch>
| Modifier and Type | Class and Description |
|---|---|
static class |
RecentChangesPoller.Batch
Batch implementation for this poller.
|
| Constructor and Description |
|---|
RecentChangesPoller(WikibaseRepository wikibase,
Instant firstStartTime,
int batchSize,
int tailSeconds,
com.codahale.metrics.MetricRegistry metricRegistry) |
RecentChangesPoller(WikibaseRepository wikibase,
Instant firstStartTime,
int batchSize,
Map<Long,Boolean> seenIDs,
int tailSeconds,
com.codahale.metrics.Timer recentChangesTimer,
com.codahale.metrics.Counter recentChangesCounter) |
RecentChangesPoller(WikibaseRepository wikibase,
Instant firstStartTime,
int batchSize,
com.codahale.metrics.MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RecentChangesPoller.Batch |
firstBatch()
Fetch the first batch.
|
RecentChangesPoller.Batch |
nextBatch(RecentChangesPoller.Batch lastBatch)
Fetches the next batch after lastBatch.
|
void |
setBackoff(boolean useBackoff)
Whether to use backoff.
|
public RecentChangesPoller(WikibaseRepository wikibase, Instant firstStartTime, int batchSize, Map<Long,Boolean> seenIDs, int tailSeconds, com.codahale.metrics.Timer recentChangesTimer, com.codahale.metrics.Counter recentChangesCounter)
public RecentChangesPoller(WikibaseRepository wikibase, Instant firstStartTime, int batchSize, com.codahale.metrics.MetricRegistry metricRegistry)
public RecentChangesPoller(WikibaseRepository wikibase, Instant firstStartTime, int batchSize, int tailSeconds, com.codahale.metrics.MetricRegistry metricRegistry)
public void setBackoff(boolean useBackoff)
public RecentChangesPoller.Batch firstBatch() throws RetryableException
Change.SourcefirstBatch in interface Change.Source<RecentChangesPoller.Batch>RetryableException - is the fetch fails in a retryable waypublic RecentChangesPoller.Batch nextBatch(RecentChangesPoller.Batch lastBatch) throws RetryableException
Change.SourcenextBatch in interface Change.Source<RecentChangesPoller.Batch>RetryableException - is the fetch fails in a retryable waypublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2019. All rights reserved.