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
  • Constructor Details

    • MessageSourcePollingTemplate

      public MessageSourcePollingTemplate(MessageSource<?> source)
  • Method Details

    • poll

      public boolean poll(org.springframework.messaging.MessageHandler handler)
      Description copied from interface: PollingOperations
      Poll for a message.
      Specified by:
      poll in interface PollingOperations
      Parameters:
      handler - a message handler.
      Returns:
      the message