B - type of update batchpublic class Updater<B extends Change.Batch> extends Object implements Runnable, Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
handleChanges(Iterable<Change> changes)
Handle the changes in a batch.
|
void |
run() |
protected void |
syncDate(Instant newDate)
Record that we reached certain date in permanent storage.
|
protected void syncDate(Instant newDate)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected void handleChanges(Iterable<Change> changes) throws InterruptedException
InterruptedException - if the process is interrupted while waiting
on changes to syncCopyright © 2019. All rights reserved.