public class AS4DuplicateManagerInMemory extends Object implements IAS4DuplicateManager
| Constructor and Description |
|---|
AS4DuplicateManagerInMemory() |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.state.EChange |
clearCache()
Remove all entries in the cache.
|
com.helger.commons.collection.impl.ICommonsList<String> |
evictAllItemsBefore(LocalDateTime aRefDT)
Delete all duplicate items that were created before the provided time.
|
IAS4DuplicateItem |
findFirst(Predicate<? super IAS4DuplicateItem> aFilter) |
com.helger.commons.collection.impl.ICommonsList<IAS4DuplicateItem> |
getAll() |
boolean |
isEmpty() |
com.helger.commons.state.EContinue |
registerAndCheck(String sMessageID,
String sProfileID,
String sPModeID)
Check if the passed message ID was already handled.
|
int |
size() |
@Nonnull public com.helger.commons.state.EContinue registerAndCheck(@Nullable String sMessageID, @Nullable String sProfileID, @Nullable String sPModeID)
IAS4DuplicateManagerregisterAndCheck in interface IAS4DuplicateManagersMessageID - Message ID to check. May be null.sProfileID - Active AS4 profile ID. May be used to define the PMode further. May
be null.sPModeID - Active AS4 PMode ID. May be null.EContinue.CONTINUE to continue@Nonnull public com.helger.commons.state.EChange clearCache()
IAS4DuplicateManagerclearCache in interface IAS4DuplicateManagerEChange@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<String> evictAllItemsBefore(@Nonnull LocalDateTime aRefDT)
IAS4DuplicateManagerevictAllItemsBefore in interface IAS4DuplicateManageraRefDT - The reference date time to compare to. May not be null.null list of all evicted message IDs.public boolean isEmpty()
isEmpty in interface IAS4DuplicateManager@Nonnegative public int size()
size in interface IAS4DuplicateManager@Nullable public IAS4DuplicateItem findFirst(@Nonnull Predicate<? super IAS4DuplicateItem> aFilter)
findFirst in interface IAS4DuplicateManager@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<IAS4DuplicateItem> getAll()
getAll in interface IAS4DuplicateManagerCopyright © 2015–2020 Philip Helger. All rights reserved.