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
Modifier and TypeFieldDescriptionstatic final BiFunction<org.springframework.messaging.Message<?>,
String, String> TheBiFunction
forAbstractCorrelatingMessageHandler.setGroupConditionSupplier(BiFunction)
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canRelease
(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> TheBiFunction
forAbstractCorrelatingMessageHandler.setGroupConditionSupplier(BiFunction)
.
-
-
Constructor Details
-
FileMarkerReleaseStrategy
public FileMarkerReleaseStrategy()
-
-
Method Details
-
canRelease
public boolean canRelease(org.springframework.integration.store.MessageGroup group) - Specified by:
canRelease
in interfaceorg.springframework.integration.aggregator.ReleaseStrategy
-
getGroupConditionSupplier
public BiFunction<org.springframework.messaging.Message<?>,String, getGroupConditionSupplier()String> - Specified by:
getGroupConditionSupplier
in interfaceorg.springframework.integration.aggregator.GroupConditionProvider
-