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
    The BiFunction for AbstractCorrelatingMessageHandler.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()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • GROUP_CONDITION

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

  • Method Details

    • canRelease

      public boolean canRelease​(org.springframework.integration.store.MessageGroup group)
      Specified by:
      canRelease in interface org.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 interface org.springframework.integration.aggregator.GroupConditionProvider