Class DefaultMessageIdCache
- java.lang.Object
-
- org.apache.cxf.ws.addressing.impl.DefaultMessageIdCache
-
- All Implemented Interfaces:
MessageIdCache
public class DefaultMessageIdCache extends Object implements MessageIdCache
An implementation that uses a simple set to store received message IDs. Note that this implementation does not make any attempt to flush older message IDs or to persist the message IDs outside of this instance.
-
-
Constructor Summary
Constructors Constructor Description DefaultMessageIdCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckUniquenessAndCacheId(String messageId)CheckmessageIdfor uniqueness against previously encountered values and cache the ID.protected Set<String>getMessageIdSet()
-
-
-
Method Detail
-
checkUniquenessAndCacheId
public boolean checkUniquenessAndCacheId(String messageId)
Description copied from interface:MessageIdCacheCheckmessageIdfor uniqueness against previously encountered values and cache the ID. Note that the retention policy for previously encountered values is implementation specific.- Specified by:
checkUniquenessAndCacheIdin interfaceMessageIdCache- Parameters:
messageId- the message ID to check for uniqueness and cache for future comparison- Returns:
- true if and only if
messageIdis not already in the cache
-
-