|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.aggregator.MessageCountReleaseStrategy
public class MessageCountReleaseStrategy
A ReleaseStrategy that releases only the first n messages, where n is a threshold.
| Constructor Summary | |
|---|---|
MessageCountReleaseStrategy()
Convenient constructor is only one message is required (threshold=1). |
|
MessageCountReleaseStrategy(int threshold)
|
|
| Method Summary | |
|---|---|
boolean |
canRelease(MessageGroup group)
Release the group if it has more messages than the threshold and has not previously been released. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageCountReleaseStrategy(int threshold)
threshold - the number of messages to accept before releasingpublic MessageCountReleaseStrategy()
| Method Detail |
|---|
public boolean canRelease(MessageGroup group)
canRelease in interface ReleaseStrategy
|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||