Skip to content

IdempotentReceiverInterceptor Improvement #3241

@garyrussell

Description

@garyrussell

Enhance the MetadataStoreSelector to provide an option to evaluate an expression against the current value (if present) instead of simply putIfAbsent.

Consider https://stackoverflow.com/questions/61040057/spring-integration-process-files-line-by-line-persisting-read-state/61046158#61046158

Such an enhancement would allow a single MetadataStore entry with the key being the file and the value being the line number. The new option could compare the stored value to to the current line number and skip the line if it has already been processed.

Currently, we'd need a key containing the file name and line number.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions