Interface Controller
-
public interface ControllerControls various aspect of the exporting process.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScheduledTaskscheduleCancellableTask(Duration delay, Runnable task)Schedules a cancellable {@param task} to be ran after {@param delay} has expired.voidupdateLastExportedRecordPosition(long position)Signals to the broker that the exporter has successfully exported all records up to and including the record at {@param position}.
-
-
-
Method Detail
-
updateLastExportedRecordPosition
void updateLastExportedRecordPosition(long position)
Signals to the broker that the exporter has successfully exported all records up to and including the record at {@param position}.- Parameters:
position- the latest successfully exported record position
-
scheduleCancellableTask
ScheduledTask scheduleCancellableTask(Duration delay, Runnable task)
Schedules a cancellable {@param task} to be ran after {@param delay} has expired.- Parameters:
delay- time to wait until the task is rantask- the task to run- Returns:
- cancellable task.
-
-