Class AS4DuplicateManager

java.lang.Object
com.helger.dao.AbstractDAO
com.helger.dao.wal.AbstractWALDAO<IMPLTYPE>
com.helger.dao.wal.AbstractMapBasedWALDAO<INTERFACETYPE,IMPLTYPE>
com.helger.photon.app.dao.AbstractPhotonMapBasedWALDAO<IAS4DuplicateItem,AS4DuplicateItem>
com.helger.phase4.duplicate.AS4DuplicateManager
All Implemented Interfaces:
com.helger.commons.lang.IHasSize, com.helger.dao.IAutoSaveAware, com.helger.dao.IDAO, com.helger.dao.wal.IMapBasedDAO<IAS4DuplicateItem>, IAS4DuplicateManager

@ThreadSafe public class AS4DuplicateManager extends com.helger.photon.app.dao.AbstractPhotonMapBasedWALDAO<IAS4DuplicateItem,AS4DuplicateItem> implements IAS4DuplicateManager
This is the duplicate checker for avoiding duplicate messages.
Author:
Philip Helger
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.helger.dao.wal.AbstractMapBasedWALDAO

    com.helger.dao.wal.AbstractMapBasedWALDAO.InitSettings<IMPLTYPE extends Object>

    Nested classes/interfaces inherited from interface com.helger.dao.IDAO

    com.helger.dao.IDAO.EMode
  • Field Summary

    Fields inherited from class com.helger.dao.wal.AbstractMapBasedWALDAO

    ELEMENT_ITEM, ELEMENT_ROOT

    Fields inherited from class com.helger.dao.wal.AbstractWALDAO

    DEFAULT_WAITING_TIME, WAL_XWS, WRITE_XWS

    Fields inherited from class com.helger.dao.AbstractDAO

    DEFAULT_AUTO_SAVE_ENABLED, FILENAME_EXTENSION_NEW, FILENAME_EXTENSION_PREV, m_aRWLock, RW_LOCK
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.helger.commons.state.EChange
    Remove all entries in the cache.
    com.helger.commons.collection.impl.ICommonsList<String>
    Delete all duplicate items that were created before the provided time.
    Find the first item with the provided message ID.
    com.helger.commons.state.EContinue
    registerAndCheck(String sMessageID, String sProfileID, String sPModeID)
    Check if the passed message ID was already handled.

    Methods inherited from class com.helger.photon.app.dao.AbstractPhotonMapBasedWALDAO

    isReloadable, reload

    Methods inherited from class com.helger.dao.wal.AbstractMapBasedWALDAO

    callbacks, containsAllIDs, containsAny, containsNone, containsOnly, containsWithID, createWriteData, findAll, findAllMapped, findFirst, findFirstMapped, forEach, forEach, forEachKey, forEachKey, forEachValue, forEachValue, getAll, getAll, getAllIDs, getAllMapped, getAtIndex, getCount, getNone, getOfID, internalContainsWithID, internalCreateItem, internalCreateItem, internalDeleteItem, internalDeleteItem, internalDirectGetAll, internalForEachValue, internalForEachValue, internalGetAll, internalGetAllSortedByKey, internalGetOfID, internalMarkItemDeleted, internalMarkItemDeleted, internalMarkItemUndeleted, internalMarkItemUndeleted, internalRemoveAllItemsNoCallback, internalUpdateItem, internalUpdateItem, isEmpty, isNotEmpty, markAsChanged, onRead, onRecoveryCreate, onRecoveryDelete, onRecoveryUpdate, size, toString

    Methods inherited from class com.helger.dao.wal.AbstractWALDAO

    convertNativeToWALString, convertWALStringToNative, getDataTypeClass, getFilenameProvider, getInitCount, getIO, getLastFilename, getLastInitDateTime, getLastReadDateTime, getLastWriteDateTime, getReadCount, getSafeFile, getWaitingTime, getWALXMLWriterSettings, getWriteCount, getXMLWriterSettings, initialRead, markAsChanged, modifyWriteData, onBetweenReadAndWAL, onFilenameChange, onInit, onRecoveryErrorConvertToNative, setWaitingTime, triggerExceptionHandlersRead, triggerExceptionHandlersWrite, writeToFileOnPendingChanges

    Methods inherited from class com.helger.dao.AbstractDAO

    beginWithoutAutoSave, checkFileAccess, endWithoutAutoSave, exceptionHandlersRead, exceptionHandlersWrite, hasPendingChanges, internalHasPendingChanges, internalIsAutoSaveEnabled, internalSetPendingChanges, isAutoSaveEnabled, isSilentMode, setSilentMode

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.helger.phase4.duplicate.IAS4DuplicateManager

    getAll, isEmpty, size

    Methods inherited from interface com.helger.dao.IAutoSaveAware

    performWithoutAutoSave, performWithoutAutoSave, performWithoutAutoSaveThrowing, performWithoutAutoSaveThrowing
  • Constructor Details

    • AS4DuplicateManager

      public AS4DuplicateManager(@Nullable String sFilename) throws com.helger.dao.DAOException
      Throws:
      com.helger.dao.DAOException
  • Method Details