Package org.frankframework.core
Interface IMessageBrowser<M>
- All Superinterfaces:
IXAEnabled
- All Known Subinterfaces:
ITransactionalStorage<S>
- All Known Implementing Classes:
AbstractJdbcMessageBrowser
,AbstractJmsMessageBrowser
,DummyTransactionalStorage
,JdbcTableMessageBrowser
,JdbcTransactionalStorage
,JmsBrowser
,JmsTransactionalStorage
,MessageStoreSender
- Since:
- 4.3
- Author:
- Gerrit van Brakel
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
static enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionbrowseMessage
(String storageKey) Retrieves the message, but does not delete.boolean
containsCorrelationId
(String correlationId) boolean
containsMessageId
(String originalMessageId) Check if the storage contains message with the given original messageId (as passed to storeMessage).void
deleteMessage
(String storageKey) Deletes the message.getContext
(String storageKey) Retrieves the message context as an iteratorItem.Gets an enumeration of messages.getIterator
(Date startTime, Date endTime, IMessageBrowser.SortOrder order) int
void
setHideMethod
(IMessageBrowser.HideMethod hideMethod) (Only used when hideRegex is not empty) Specifies the way to hidevoid
setHideRegex
(String hideRegex) Regular expression to mask strings in the errorStore/logStore.Methods inherited from interface org.frankframework.core.IXAEnabled
isTransacted
-
Method Details
-
getIterator
Gets an enumeration of messages. This includes setting up connections, sessions etc.- Throws:
ListenerException
-
getIterator
IMessageBrowsingIterator getIterator(Date startTime, Date endTime, IMessageBrowser.SortOrder order) throws ListenerException - Throws:
ListenerException
-
getContext
Retrieves the message context as an iteratorItem. The result can be used in the methods above that use an iteratorItem. Use this method as try-with-resources to close the connections.- Throws:
ListenerException
-
containsMessageId
Check if the storage contains message with the given original messageId (as passed to storeMessage).- Throws:
ListenerException
-
containsCorrelationId
- Throws:
ListenerException
-
browseMessage
Retrieves the message, but does not delete.- Throws:
ListenerException
-
deleteMessage
Deletes the message.- Throws:
ListenerException
-
getMessageCount
- Throws:
ListenerException
-
setHideRegex
Regular expression to mask strings in the errorStore/logStore. Every character between to the strings in this expression will be replaced by a '*'.
For example, the regular expression (?<=<party>).*?(?=</party>) will replace every character between keys <party> and </party>
When no hideRegex is configured on the errorStore / logStore but is configured on theReceiver.setHideRegex(String)
, then the Receiver's hideRegex is used for the errorStore / logStore. -
getHideRegex
String getHideRegex() -
setHideMethod
(Only used when hideRegex is not empty) Specifies the way to hide- Default value
- ALL
-
getHideMethod
IMessageBrowser.HideMethod getHideMethod()
-