public class NullMessageAggregator extends java.lang.Object implements MessageAggregator
MessageAggregator
that does not aggregate messages.
Although an edge case; it might be that you are using this as part of a SplitJoinService
and you simply wish to keep the
original message and ignore everything else. This aggregator has an empty joinMessage(AdaptrisMessage, Collection)
method.
In the adapter configuration file this class is aliased as null-message-aggregator which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
NullMessageAggregator() |
Modifier and Type | Method and Description |
---|---|
void |
joinMessage(AdaptrisMessage msg,
java.util.Collection<AdaptrisMessage> msgs)
Joins multiple
AdaptrisMessage s into a single AdaptrisMessage
objects. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregate, collect
public void joinMessage(AdaptrisMessage msg, java.util.Collection<AdaptrisMessage> msgs) throws CoreException
MessageAggregator
Joins multiple AdaptrisMessage
s into a single AdaptrisMessage
objects. Preservation of metadata is down to the implementation.
joinMessage
in interface MessageAggregator
msg
- the msg to insert all the messages intomsgs
- the list of messages to join.CoreException
- wrapping any other exception