org.springframework.integration.message
Class SimpleMessageStore
java.lang.Object
org.springframework.integration.message.SimpleMessageStore
- All Implemented Interfaces:
- MessageStore
public class SimpleMessageStore
- extends java.lang.Object
- implements MessageStore
Map-based implementation of MessageStore
that enforces capacity.
- Author:
- Mark Fisher
Field Summary |
private java.util.Map<java.lang.Object,Message<?>> |
map
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
map
private final java.util.Map<java.lang.Object,Message<?>> map
SimpleMessageStore
public SimpleMessageStore(int capacity)
put
public Message<?> put(java.lang.Object key,
Message<?> message)
- Specified by:
put
in interface MessageStore
get
public Message<?> get(java.lang.Object key)
- Specified by:
get
in interface MessageStore
remove
public Message<?> remove(java.lang.Object key)
- Specified by:
remove
in interface MessageStore
size
public int size()
- Specified by:
size
in interface MessageStore