Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2114

QueueChannel clear() method should be expose in an interface

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.5
    • Fix Version/s: 3.0 M1
    • Component/s: Core
    • Labels:
      None

      Description

      Sometimes some messages in a QueueChannel will never be consumed because, for instance, timeout of the receiver. Next executions of receive should not consume this old-messages so it would be useful to clear the queue with the clear() QueueChannel method.

      XML-configured queue channel can't be retrieve from application context as concrete class QueueChannel without risking of ClassCastException. As clear() method is only declare in concrete class and not in an interface so its not possible to call it from the class that retrieves the queue channel.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              grussell Gary Russell
              Reporter:
              occus3 occus3
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: