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

Threadsafe Iterable list of MessageHistoryEvent instances.

Since:
2.0
Author:
Mark Fisher, Oleg Zhurakousky, Iwein Fuld
See Also:
Serialized Form

Constructor Summary
MessageHistory()
           
 
Method Summary
 MessageHistoryEvent addEvent(NamedComponent component)
          Add a new event with the provided component metadata.
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 java.util.Iterator<MessageHistoryEvent> iterator()
          Returns a weakly consistent iterator that will never throw ConcurrentModificationException as in ConcurrentLinkedQueue.iterator().
 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(NamedComponent component)
Add a new event with the provided component metadata.


iterator

public java.util.Iterator<MessageHistoryEvent> iterator()
Returns a weakly consistent iterator that will never throw ConcurrentModificationException as in ConcurrentLinkedQueue.iterator().

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