Package org.frankframework.core
Interface IPostboxListener<M>
- All Superinterfaces:
org.springframework.context.ApplicationContextAware
,org.springframework.beans.factory.Aware
,IConfigurable
,IConfigurationAware
,IListener<M>
,INamedObject
,IPullingListener<M>
,IScopeProvider
- All Known Implementing Classes:
PullingJmsListener
The
IPostboxListener
is responsible for querying a message
from a postbox.- Author:
- John Dekker
-
Method Summary
Modifier and TypeMethodDescriptionretrieveRawMessage
(String messageSelector, Map<String, Object> threadContext) Retrieves the first message found from queue or other channel, that matches the specifiedmessageSelector
.Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.core.IConfigurationAware
getApplicationContext, getName
Methods inherited from interface org.frankframework.core.IListener
afterMessageProcessed, close, configure, extractMessage, open
Methods inherited from interface org.frankframework.core.INamedObject
getName, setName
Methods inherited from interface org.frankframework.core.IPullingListener
closeThread, getRawMessage, openThread
Methods inherited from interface org.frankframework.core.IScopeProvider
getConfigurationClassLoader
-
Method Details
-
retrieveRawMessage
RawMessageWrapper<M> retrieveRawMessage(String messageSelector, Map<String, Object> threadContext) throws ListenerException, TimeoutExceptionRetrieves the first message found from queue or other channel, that matches the specifiedmessageSelector
.- Parameters:
messageSelector
- search criteria for messages. Not that the format of the selector changes per listener, for example a JMSListener's messageSelector follows the JMS specification.threadContext
- context in which the method is called- Throws:
ListenerException
TimeoutException
-