Spring Integration

org.springframework.integration.history
Class MessageHistory

java.lang.Object
  extended by org.springframework.integration.history.MessageHistory
All Implemented Interfaces:
Iterable<Properties>, Collection<Properties>, List<Properties>

public class MessageHistory
extends Object
implements List<Properties>

Since:
2.0
Author:
Mark Fisher

Nested Class Summary
static class MessageHistory.Entry
          Inner class for each Entry in the history.
 
Field Summary
static String HEADER_NAME
           
static String NAME_PROPERTY
           
static String TIMESTAMP_PROPERTY
           
static String TYPE_PROPERTY
           
 
Method Summary
 void add(int index, Properties element)
           
 boolean add(Properties e)
           
 boolean addAll(Collection<? extends Properties> c)
           
 boolean addAll(int index, Collection<? extends Properties> c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 Properties get(int index)
           
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator<Properties> iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<Properties> listIterator()
           
 ListIterator<Properties> listIterator(int index)
           
static MessageHistory read(Message<?> message)
           
 Properties remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 Properties set(int index, Properties element)
           
 int size()
           
 List<Properties> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 String toString()
           
static
<T> Message<T>
write(Message<T> message, NamedComponent component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Field Detail

HEADER_NAME

public static final String HEADER_NAME
See Also:
Constant Field Values

NAME_PROPERTY

public static final String NAME_PROPERTY
See Also:
Constant Field Values

TYPE_PROPERTY

public static final String TYPE_PROPERTY
See Also:
Constant Field Values

TIMESTAMP_PROPERTY

public static final String TIMESTAMP_PROPERTY
See Also:
Constant Field Values
Method Detail

read

public static MessageHistory read(Message<?> message)

write

public static <T> Message<T> write(Message<T> message,
                                   NamedComponent component)

size

public int size()
Specified by:
size in interface Collection<Properties>
Specified by:
size in interface List<Properties>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<Properties>
Specified by:
isEmpty in interface List<Properties>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<Properties>
Specified by:
contains in interface List<Properties>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<Properties>
Specified by:
containsAll in interface List<Properties>

get

public Properties get(int index)
Specified by:
get in interface List<Properties>

iterator

public Iterator<Properties> iterator()
Specified by:
iterator in interface Iterable<Properties>
Specified by:
iterator in interface Collection<Properties>
Specified by:
iterator in interface List<Properties>

listIterator

public ListIterator<Properties> listIterator()
Specified by:
listIterator in interface List<Properties>

listIterator

public ListIterator<Properties> listIterator(int index)
Specified by:
listIterator in interface List<Properties>

subList

public List<Properties> subList(int fromIndex,
                                int toIndex)
Specified by:
subList in interface List<Properties>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<Properties>
Specified by:
toArray in interface List<Properties>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<Properties>
Specified by:
toArray in interface List<Properties>

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<Properties>

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<Properties>

toString

public String toString()
Overrides:
toString in class Object

add

public boolean add(Properties e)
Specified by:
add in interface Collection<Properties>
Specified by:
add in interface List<Properties>

add

public void add(int index,
                Properties element)
Specified by:
add in interface List<Properties>

addAll

public boolean addAll(Collection<? extends Properties> c)
Specified by:
addAll in interface Collection<Properties>
Specified by:
addAll in interface List<Properties>

addAll

public boolean addAll(int index,
                      Collection<? extends Properties> c)
Specified by:
addAll in interface List<Properties>

set

public Properties set(int index,
                      Properties element)
Specified by:
set in interface List<Properties>

remove

public Properties remove(int index)
Specified by:
remove in interface List<Properties>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<Properties>
Specified by:
remove in interface List<Properties>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<Properties>
Specified by:
removeAll in interface List<Properties>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<Properties>
Specified by:
retainAll in interface List<Properties>

clear

public void clear()
Specified by:
clear in interface Collection<Properties>
Specified by:
clear in interface List<Properties>

Spring Integration

Copyright © 2010. All Rights Reserved.