org.springframework.integration.store
Interface MessageGroup

All Known Implementing Classes:
SimpleMessageGroup

public interface MessageGroup


Method Summary
 boolean add(Message<?> message)
          Add a message to the internal list.
 java.lang.Object getCorrelationKey()
           
 java.util.Collection<Message<?>> getMarked()
           
 Message<?> getOne()
           
 int getSequenceSize()
           
 long getTimestamp()
           
 java.util.Collection<Message<?>> getUnmarked()
           
 boolean isComplete()
           
 void mark()
           
 int size()
           
 

Method Detail

add

boolean add(Message<?> message)
Add a message to the internal list. This is needed to avoid hitting the underlying store or copying the internal list. Use with care.


getUnmarked

java.util.Collection<Message<?>> getUnmarked()
Returns:
internal message list, modification is allowed, but not recommended

getMarked

java.util.Collection<Message<?>> getMarked()
Returns:
internal message list, modification is allowed, but not recommended

getCorrelationKey

java.lang.Object getCorrelationKey()
Returns:
the correlation key that links these messages together according to a particular CorrelationStrategy

isComplete

boolean isComplete()

getSequenceSize

int getSequenceSize()

size

int size()

mark

void mark()

getOne

Message<?> getOne()

getTimestamp

long getTimestamp()