Class PurgeMessageChannelAction

  • All Implemented Interfaces:
    Described, Named, TestAction, TestActorAware

    public class PurgeMessageChannelAction
    extends AbstractTestAction
    Action purges all messages from a message channel instance. Message channel must be of type QueueChannel. Action receives a list of channel objects or a list of channel names that are resolved dynamically at runtime.
    Author:
    Christoph Deppisch
    • Method Detail

      • resolveChannelName

        protected org.springframework.messaging.MessageChannel resolveChannelName​(String channelName)
        Resolve the channel by name.
        Parameters:
        channelName - the name to resolve
        Returns:
        the MessageChannel object
      • getChannelNames

        public List<String> getChannelNames()
        Gets the channelNames.
        Returns:
        the channelNames the channelNames to get.
      • getChannels

        public List<org.springframework.messaging.MessageChannel> getChannels()
        Gets the channels.
        Returns:
        the channels the channels to get.
      • getMessageSelector

        public org.springframework.integration.core.MessageSelector getMessageSelector()
        Gets the messageSelector.
        Returns:
        the messageSelector the messageSelector to get.
      • getChannelResolver

        public org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> getChannelResolver()
        Gets the channelResolver.
        Returns:
        the channelResolver the channelResolver to get.