T - record typepublic class PoisonRecordBroadcaster<T extends Record> extends Object implements JobListener
PoisonRecord record at the end of the job.| Constructor and Description |
|---|
PoisonRecordBroadcaster(List<BlockingQueue<T>> queues)
Create a new
PoisonRecordBroadcaster. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterJobEnd(JobReport jobReport)
Called after closing the record reader.
|
void |
beforeJobStart(JobParameters jobParameters)
Called after initializing the record reader and before starting the job.
|
public PoisonRecordBroadcaster(List<BlockingQueue<T>> queues)
PoisonRecordBroadcaster.queues - the list of queues to which poison records should be dispatchedpublic void beforeJobStart(JobParameters jobParameters)
JobListenerbeforeJobStart in interface JobListenerjobParameters - the job parameterspublic void afterJobEnd(JobReport jobReport)
JobListenerafterJobEnd in interface JobListenerjobReport - The job execution reportCopyright © 2015. All Rights Reserved.