Class MessageHistory
java.lang.Object
org.springframework.integration.history.MessageHistory
- All Implemented Interfaces:
Serializable,Iterable<Properties>,Collection<Properties>,List<Properties>
public final class MessageHistory extends Object implements List<Properties>, Serializable
- Since:
- 2.0
- Author:
- Mark Fisher, Artem Bilan, Gary Russell
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageHistory.EntryInner class for each Entry in the history. -
Field Summary
Fields Modifier and Type Field Description static StringHEADER_NAMEstatic StringNAME_PROPERTYstatic StringTIMESTAMP_PROPERTYstatic StringTYPE_PROPERTY -
Method Summary
Modifier and Type Method Description voidadd(int index, Properties element)booleanadd(Properties e)booleanaddAll(int index, Collection<? extends Properties> c)booleanaddAll(Collection<? extends Properties> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)Propertiesget(int index)intindexOf(Object o)booleanisEmpty()Iterator<Properties>iterator()intlastIndexOf(Object o)ListIterator<Properties>listIterator()ListIterator<Properties>listIterator(int index)static MessageHistoryread(Message<?> message)Propertiesremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)Propertiesset(int index, Properties element)intsize()List<Properties>subList(int fromIndex, int toIndex)Object[]toArray()<T> T[]toArray(T[] a)StringtoString()static <T> Message<T>write(Message<T> message, NamedComponent component)static <T> Message<T>write(Message<T> messageArg, NamedComponent component, MessageBuilderFactory messageBuilderFactory)
-
Field Details
-
HEADER_NAME
- See Also:
- Constant Field Values
-
NAME_PROPERTY
- See Also:
- Constant Field Values
-
TYPE_PROPERTY
- See Also:
- Constant Field Values
-
TIMESTAMP_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Details
-
read
-
write
-
write
public static <T> Message<T> write(Message<T> messageArg, NamedComponent component, MessageBuilderFactory messageBuilderFactory) -
size
public int size()- Specified by:
sizein interfaceCollection<Properties>- Specified by:
sizein interfaceList<Properties>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Properties>- Specified by:
isEmptyin interfaceList<Properties>
-
contains
- Specified by:
containsin interfaceCollection<Properties>- Specified by:
containsin interfaceList<Properties>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Properties>- Specified by:
containsAllin interfaceList<Properties>
-
get
- Specified by:
getin interfaceList<Properties>
-
iterator
- Specified by:
iteratorin interfaceCollection<Properties>- Specified by:
iteratorin interfaceIterable<Properties>- Specified by:
iteratorin interfaceList<Properties>
-
listIterator
- Specified by:
listIteratorin interfaceList<Properties>
-
listIterator
- Specified by:
listIteratorin interfaceList<Properties>
-
subList
- Specified by:
subListin interfaceList<Properties>
-
toArray
- Specified by:
toArrayin interfaceCollection<Properties>- Specified by:
toArrayin interfaceList<Properties>
-
toArray
public <T> T[] toArray(T[] a)- Specified by:
toArrayin interfaceCollection<Properties>- Specified by:
toArrayin interfaceList<Properties>
-
indexOf
- Specified by:
indexOfin interfaceList<Properties>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Properties>
-
toString
-
add
- Specified by:
addin interfaceCollection<Properties>- Specified by:
addin interfaceList<Properties>
-
add
- Specified by:
addin interfaceList<Properties>
-
addAll
- Specified by:
addAllin interfaceCollection<Properties>- Specified by:
addAllin interfaceList<Properties>
-
addAll
- Specified by:
addAllin interfaceList<Properties>
-
set
- Specified by:
setin interfaceList<Properties>
-
remove
- Specified by:
removein interfaceList<Properties>
-
remove
- Specified by:
removein interfaceCollection<Properties>- Specified by:
removein interfaceList<Properties>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Properties>- Specified by:
removeAllin interfaceList<Properties>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Properties>- Specified by:
retainAllin interfaceList<Properties>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Properties>- Specified by:
clearin interfaceList<Properties>
-