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 java.lang.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
Fields Modifier and Type Field Description static java.util.function.BiFunction<org.springframework.messaging.Message<?>,java.lang.String,java.lang.String>
GROUP_CONDITION
TheBiFunction
forAbstractCorrelatingMessageHandler.setGroupConditionSupplier(BiFunction)
. -
Constructor Summary
Constructors Constructor Description FileMarkerReleaseStrategy()
-
Method Summary
Modifier and Type Method Description boolean
canRelease(org.springframework.integration.store.MessageGroup group)
java.util.function.BiFunction<org.springframework.messaging.Message<?>,java.lang.String,java.lang.String>
getGroupConditionSupplier()
-
Field Details
-
GROUP_CONDITION
public static final java.util.function.BiFunction<org.springframework.messaging.Message<?>,java.lang.String,java.lang.String> GROUP_CONDITIONTheBiFunction
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 java.util.function.BiFunction<org.springframework.messaging.Message<?>,java.lang.String,java.lang.String> getGroupConditionSupplier()- Specified by:
getGroupConditionSupplier
in interfaceorg.springframework.integration.aggregator.GroupConditionProvider
-