public class SequenceSizeReleaseStrategy extends Object implements ReleaseStrategy
ReleaseStrategy
that simply compares the current size of the message list to the
expected 'sequenceSize'.Constructor and Description |
---|
SequenceSizeReleaseStrategy() |
SequenceSizeReleaseStrategy(boolean releasePartialSequences) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRelease(MessageGroup messageGroup) |
void |
setReleasePartialSequences(boolean releasePartialSequences)
Flag that determines if partial sequences are allowed.
|
public SequenceSizeReleaseStrategy()
public SequenceSizeReleaseStrategy(boolean releasePartialSequences)
public void setReleasePartialSequences(boolean releasePartialSequences)
releasePartialSequences
- true when partial sequences should be released.public boolean canRelease(MessageGroup messageGroup)
canRelease
in interface ReleaseStrategy