Class FileMarkerReleaseStrategy
java.lang.Object
org.springframework.integration.file.aggregator.FileMarkerReleaseStrategy
- All Implemented Interfaces:
org.springframework.integration.aggregator.GroupConditionProvider,org.springframework.integration.aggregator.ReleaseStrategy
public class FileMarkerReleaseStrategy
extends Object
implements org.springframework.integration.aggregator.ReleaseStrategy, org.springframework.integration.aggregator.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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BiFunction<org.springframework.messaging.Message<?>,String, String> TheBiFunctionforAbstractCorrelatingMessageHandler.setGroupConditionSupplier(BiFunction). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRelease(org.springframework.integration.store.MessageGroup group) BiFunction<org.springframework.messaging.Message<?>,String, String>
-
Field Details
-
GROUP_CONDITION
public static final BiFunction<org.springframework.messaging.Message<?>,String, GROUP_CONDITIONString> TheBiFunctionforAbstractCorrelatingMessageHandler.setGroupConditionSupplier(BiFunction).
-
-
Constructor Details
-
FileMarkerReleaseStrategy
public FileMarkerReleaseStrategy()
-
-
Method Details
-
canRelease
public boolean canRelease(org.springframework.integration.store.MessageGroup group) - Specified by:
canReleasein interfaceorg.springframework.integration.aggregator.ReleaseStrategy
-
getGroupConditionSupplier
public BiFunction<org.springframework.messaging.Message<?>,String, getGroupConditionSupplier()String> - Specified by:
getGroupConditionSupplierin interfaceorg.springframework.integration.aggregator.GroupConditionProvider
-