Interface JobCallback<R extends DataReader,W extends DataWriter>
- All Known Implementing Classes:
AbstractJobCallback,DefaultJobCallback
public interface JobCallback<R extends DataReader,W extends DataWriter>
Receives the progress and outcome of a
Job; the default onFailure rethrows the exception.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidCalled after a failed or cancelled transfer closes the reader and writer, with the record in progress ornull; the default rethrows the exception, makingJob.run()throw it.default voidonProgress(R reader, W writer, Record currentRecord) Called on the job's thread after each record is written.default voidCalled after all records were transferred and the reader and writer closed.
-
Field Details
-
NULL
-
-
Method Details
-
onProgress
Called on the job's thread after each record is written.- Throws:
Throwable
-
onSuccess
Called after all records were transferred and the reader and writer closed.- Throws:
Throwable
-
onFailure
default void onFailure(R reader, W writer, Record currentRecord, Throwable exception) throws Throwable Called after a failed or cancelled transfer closes the reader and writer, with the record in progress ornull; the default rethrows the exception, makingJob.run()throw it.- Throws:
Throwable
-