Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.api
Interface MuleMessageCollection

All Superinterfaces:
  MessageAdapter, MuleMessage, Serializable

All Known Implementing Classes:
  DefaultMessageCollection

    public interface MuleMessageCollection

extends MuleMessage

An interface that defines a collection of Mule Messages and methods for working with the collection. Typically this type of message is only used when users explicitly want to work with aggregated or re-sequenced collections of messages.

Method Summary
`void` | `addMessage(MuleMessage message)`
`void` | `addMessage(MuleMessage message, int index)`
`void` | `addMessages(List messages)`
`void` | `addMessages(MuleEvent[] events)`
`void` | `addMessages(MuleMessage[] messages)`
`MuleMessage` | `getMessage(int index)`
`MuleMessage[]` | `getMessagesAsArray()`
`Object[]` | `getPayloadsAsArray()`
`void` | `removedMessage(MuleMessage message)`
`int` | `size()`

Methods inherited from interface org.mule.api.MuleMessage
`applyTransformers, applyTransformers, applyTransformers, getAdapter, getOrginalPayload, getOriginalAdapter, getPayload, getPayloadAsBytes, getPayloadAsString, getPayloadAsString, setPayload`

Methods inherited from interface org.mule.api.transport.MessageAdapter
`addAttachment, addProperties, addProperties, clearProperties, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationId, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getPayload, getProperty, getProperty, getProperty, getPropertyNames, getPropertyNames, getReplyTo, getStringProperty, getUniqueId, release, removeAttachment, removeProperty, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setProperty, setReplyTo, setStringProperty`

Method Detail

### addMessage

    void addMessage(MuleMessage message)

### addMessage

    void addMessage(MuleMessage message,
                    int index)

### addMessages

    void addMessages(MuleMessage[] messages)

### addMessages

    void addMessages(MuleEvent[] events)

### addMessages

    void addMessages(List messages)

### removedMessage

    void removedMessage(MuleMessage message)

### getMessagesAsArray

    MuleMessage[] getMessagesAsArray()

### getMessage

    MuleMessage getMessage(int index)

### getPayloadsAsArray

    Object[] getPayloadsAsArray()

### size

    int size()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.