Spring Integration

org.springframework.integration.history
Class MessageHistory

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

public class MessageHistory
extends Object
implements Iterable<MessageHistoryEvent>, 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(Object other)
           
 int hashCode()
           
 Iterator<MessageHistoryEvent> iterator()
          Returns a weakly consistent iterator that will never throw ConcurrentModificationException as in ConcurrentLinkedQueue.iterator().
 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 Iterator<MessageHistoryEvent> iterator()
Returns a weakly consistent iterator that will never throw ConcurrentModificationException as in ConcurrentLinkedQueue.iterator().

Specified by:
iterator in interface Iterable<MessageHistoryEvent>

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

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

Overrides:
toString in class Object

Spring Integration

Copyright © 2010. All Rights Reserved.