public class BatchDisposalHandler extends java.lang.Object implements ImportFinaliser
batch completion
to get rid of any resources still associated with the batch, such as import
logs and the batch store file.Constructor and Description |
---|
BatchDisposalHandler(ImportEnv env)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
RepeatAction |
consume(ProcessedImport task)
Consumes the message data and returns an indication of whether the same
data should be delivered again.
|
public BatchDisposalHandler(ImportEnv env)
env
- the import environment.java.lang.NullPointerException
- if the argument is null
.public RepeatAction consume(ProcessedImport task)
RepeatConsumer
consume
in interface RepeatConsumer<ProcessedImport>
task
- the data received from the channel.Repeat
to indicate the data
should be delivered again or Stop
to indicate
no further action should be taken.