Class FileMarkerReleaseStrategy
java.lang.Object
org.springframework.integration.file.aggregator.FileMarkerReleaseStrategy
- All Implemented Interfaces:
GroupConditionProvider,ReleaseStrategy
public class FileMarkerReleaseStrategy extends Object implements ReleaseStrategy, GroupConditionProvider
A
ReleaseStrategy which makes a decision based on the presence of
FileSplitter.FileMarker.Mark.END
message in the group and its FileHeaders.LINE_COUNT header.
The logic of this strategy is based on the GROUP_CONDITION
function populated to the AbstractCorrelatingMessageHandler.
- Since:
- 5.5
- Author:
- Artem Bilan
-
Field Summary
Fields Modifier and Type Field Description static BiFunction<Message<?>,String,String>GROUP_CONDITION -
Constructor Summary
Constructors Constructor Description FileMarkerReleaseStrategy() -
Method Summary
Modifier and Type Method Description booleancanRelease(MessageGroup group)BiFunction<Message<?>,String,String>getGroupConditionSupplier()
-
Field Details
-
Constructor Details
-
FileMarkerReleaseStrategy
public FileMarkerReleaseStrategy()
-
-
Method Details
-
canRelease
- Specified by:
canReleasein interfaceReleaseStrategy
-
getGroupConditionSupplier
- Specified by:
getGroupConditionSupplierin interfaceGroupConditionProvider
-