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 class
MessageHistory.Entry
Inner class for each Entry in the history. -
Field Summary
Fields Modifier and Type Field Description static String
HEADER_NAME
static String
NAME_PROPERTY
static String
TIMESTAMP_PROPERTY
static String
TYPE_PROPERTY
-
Method Summary
Modifier and Type Method Description void
add(int index, Properties element)
boolean
add(Properties e)
boolean
addAll(int index, Collection<? extends Properties> c)
boolean
addAll(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)
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:
size
in interfaceCollection<Properties>
- Specified by:
size
in interfaceList<Properties>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<Properties>
- Specified by:
isEmpty
in interfaceList<Properties>
-
contains
- Specified by:
contains
in interfaceCollection<Properties>
- Specified by:
contains
in interfaceList<Properties>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Properties>
- Specified by:
containsAll
in interfaceList<Properties>
-
get
- Specified by:
get
in interfaceList<Properties>
-
iterator
- Specified by:
iterator
in interfaceCollection<Properties>
- Specified by:
iterator
in interfaceIterable<Properties>
- Specified by:
iterator
in interfaceList<Properties>
-
listIterator
- Specified by:
listIterator
in interfaceList<Properties>
-
listIterator
- Specified by:
listIterator
in interfaceList<Properties>
-
subList
- Specified by:
subList
in interfaceList<Properties>
-
toArray
- Specified by:
toArray
in interfaceCollection<Properties>
- Specified by:
toArray
in interfaceList<Properties>
-
toArray
public <T> T[] toArray(T[] a)- Specified by:
toArray
in interfaceCollection<Properties>
- Specified by:
toArray
in interfaceList<Properties>
-
indexOf
- Specified by:
indexOf
in interfaceList<Properties>
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<Properties>
-
toString
-
add
- Specified by:
add
in interfaceCollection<Properties>
- Specified by:
add
in interfaceList<Properties>
-
add
- Specified by:
add
in interfaceList<Properties>
-
addAll
- Specified by:
addAll
in interfaceCollection<Properties>
- Specified by:
addAll
in interfaceList<Properties>
-
addAll
- Specified by:
addAll
in interfaceList<Properties>
-
set
- Specified by:
set
in interfaceList<Properties>
-
remove
- Specified by:
remove
in interfaceList<Properties>
-
remove
- Specified by:
remove
in interfaceCollection<Properties>
- Specified by:
remove
in interfaceList<Properties>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<Properties>
- Specified by:
removeAll
in interfaceList<Properties>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<Properties>
- Specified by:
retainAll
in interfaceList<Properties>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<Properties>
- Specified by:
clear
in interfaceList<Properties>
-