Class TimeoutCountSequenceSizeReleaseStrategy
java.lang.Object
org.springframework.integration.aggregator.TimeoutCountSequenceSizeReleaseStrategy
- All Implemented Interfaces:
- ReleaseStrategy
A 
ReleaseStrategy that releases all messages if any of the following is true:
 - The sequence is complete (if there is one).
- There are more messages than a threshold set by the user.
- The time elapsed since the earliest message, according to their timestamps, if present, exceeds a timeout set by the user.
- Since:
- 2.0
- Author:
- Dave Syer, Gary Russell, Peter Uhlenbruck
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intDefault threshold is effectively infinite.static final longDefault timeout is one minute.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
DEFAULT_TIMEOUTpublic static final long DEFAULT_TIMEOUTDefault timeout is one minute.- See Also:
 
- 
DEFAULT_THRESHOLDpublic static final int DEFAULT_THRESHOLDDefault threshold is effectively infinite.- See Also:
 
 
- 
- 
Constructor Details- 
TimeoutCountSequenceSizeReleaseStrategypublic TimeoutCountSequenceSizeReleaseStrategy()
- 
TimeoutCountSequenceSizeReleaseStrategypublic TimeoutCountSequenceSizeReleaseStrategy(int threshold, long timeout) - Parameters:
- threshold- the number of messages to accept before releasing
- timeout- the timeout for the release in milliseconds
 
 
- 
- 
Method Details- 
canRelease- Specified by:
- canReleasein interface- ReleaseStrategy
 
 
-