Interface ICorrelatedPullingListener<M>
- Type Parameters:
M- the raw message type
- All Superinterfaces:
org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.Aware, FrankElement, HasApplicationContext, HasName, IConfigurable, IListener<M>, IPullingListener<M>, IScopeProvider, NameAware
- All Known Implementing Classes:
PullingJmsListener
Additional behaviour for pulling listeners that are able to listen to a specific
message, specified by a correlation ID.
- Since:
- 4.0
- Author:
- Gerrit van Brakel
-
Method Summary
Modifier and TypeMethodDescriptiongetRawMessage(String correlationId, Map<String, Object> threadContext) Retrieves messages from queue or other channel, but retrieves only messages with the specified correlationId.Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface FrankElement
addConfigWarningMethods inherited from interface HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface IConfigurable
configureMethods inherited from interface IListener
afterMessageProcessed, extractMessage, start, stopMethods inherited from interface IPullingListener
closeThread, getRawMessage, openThread
-
Method Details
-
getRawMessage
RawMessageWrapper<M> getRawMessage(String correlationId, Map<String, Object> threadContext) throws ListenerException, TimeoutExceptionRetrieves messages from queue or other channel, but retrieves only messages with the specified correlationId.- Throws:
ListenerExceptionTimeoutException
-