Class MessageSourcePollingTemplate
java.lang.Object
org.springframework.integration.endpoint.MessageSourcePollingTemplate
- All Implemented Interfaces:
PollingOperations
public class MessageSourcePollingTemplate extends Object implements PollingOperations
A
PollingOperations
used to ad-hoc poll a MessageSource
.
If the source supports deferred acknowledgment, it will be ACCEPTed
or REJECTed if necessary.- Since:
- 5.0.1
- Author:
- Gary Russell
-
Constructor Summary
Constructors Constructor Description MessageSourcePollingTemplate(MessageSource<?> source)
-
Method Summary
Modifier and Type Method Description boolean
poll(MessageHandler handler)
Poll for a message.
-
Constructor Details
-
Method Details
-
poll
Description copied from interface:PollingOperations
Poll for a message.- Specified by:
poll
in interfacePollingOperations
- Parameters:
handler
- a message handler.- Returns:
- the message
-