org.springframework.integration.history
Class MessageHistory

java.lang.Object
  extended by org.springframework.integration.history.MessageHistory
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<MessageHistoryEvent>

public class MessageHistory
extends java.lang.Object
implements java.lang.Iterable<MessageHistoryEvent>, java.io.Serializable

Iterable list of MessageHistoryEvent instances.

Since:
2.0
Author:
Mark Fisher
See Also:
Serialized Form

Constructor Summary
MessageHistory()
           
 
Method Summary
 MessageHistoryEvent addEvent(ComponentMetadata metadata)
          Add a new event with the provided component metadata.
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 java.util.Iterator<MessageHistoryEvent> iterator()
          Returns an iterator for an unmodifiable list of the history events.
 java.lang.String toString()
          Returns a String representation of the history event list.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageHistory

public MessageHistory()
Method Detail

addEvent

public MessageHistoryEvent addEvent(ComponentMetadata metadata)
Add a new event with the provided component metadata.


iterator

public java.util.Iterator<MessageHistoryEvent> iterator()
Returns an iterator for an unmodifiable list of the history events.

Specified by:
iterator in interface java.lang.Iterable<MessageHistoryEvent>

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Returns a String representation of the history event list.

Overrides:
toString in class java.lang.Object