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 Details

    • GROUP_CONDITION

      public static final BiFunction<org.springframework.messaging.Message<?>,String,String> GROUP_CONDITION
      The BiFunction for AbstractCorrelatingMessageHandler.setGroupConditionSupplier(BiFunction).
  • Constructor Details

    • FileMarkerReleaseStrategy

      public FileMarkerReleaseStrategy()
  • Method Details

    • canRelease

      public boolean canRelease(org.springframework.integration.store.MessageGroup group)
      Specified by:
      canRelease in interface org.springframework.integration.aggregator.ReleaseStrategy
    • getGroupConditionSupplier

      public BiFunction<org.springframework.messaging.Message<?>,String,String> getGroupConditionSupplier()
      Specified by:
      getGroupConditionSupplier in interface org.springframework.integration.aggregator.GroupConditionProvider