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

## com.bea.alsb.financial.api
Interface MessageAggregator<T>

Type Parameters:
  `T` - the type of data in the messages. Currently the only supported one is java.lang.String.

All Known Subinterfaces:
  BinaryMessageAggregator, StringMessageAggregator

    public interface MessageAggregator<T>

This is the template interface for all message aggregators. Messages are appended with a separator between them.

Method Summary
`int` | `addMessage(T message)` Appends the separator and the message to the list.
`T` | `getAggregatedMessage()` Get the whole aggregated message.
`int` | `getMessageCount()` Getter for the message count.
`T` | `getSeparator()` Getter for the `separator` property.
`boolean` | `isAppendAtTheEnd()` Getter for the `appendAtTheEnd` property.

Method Detail

### addMessage

    int addMessage(T message)

  Appends the separator and the message to the list.

  Parameters:
    `message` - the message to add.
  Returns:
    the message count after the addition.

### getAggregatedMessage

    T getAggregatedMessage()

  Get the whole aggregated message.

  Returns:
    the aggregated message, in the template's form.

### isAppendAtTheEnd

    boolean isAppendAtTheEnd()

  Getter for the `appendAtTheEnd` property.

  Returns:
    the value of the `appendAtTheEnd` property.

### getMessageCount

    int getMessageCount()

  Getter for the message count.

  Returns:
    the number of messages in the aggregator.

### getSeparator

    T getSeparator()

  Getter for the `separator` property.

  Returns:
    the separator value.

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