INT-4012: PriorityChannel refinement
JIRA: https://jira.spring.io/browse/INT-4012 Previously to configure a `priority` for the `MessageChannel` we should configure `QueueChannel` for particular `MessageStore`. Although the target priority logic is really in the `MessageStore` implementation, it isn't so obvious why we can't use `PriorityChannel` instance for `MessageStore` case as well. * Add `PriorityCapableChannelMessageStore` and `MessageGroupQueue` based ctors to the `PriorityChannel` for consistency. * Delegate the logic to the super `QueueChannel` as before * Rework `PointToPointChannelParser` and Java DSL components to reflect a new state of the `PriorityChannel` * Improve Docs on the matter
This commit is contained in:
committed by
Gary Russell
parent
8fd4564f80
commit
47cd4e4540
@@ -140,8 +140,7 @@ public class ConfigurableMongoDbMessageGroupStoreTests extends AbstractMongoDbMe
|
||||
context.refresh();
|
||||
|
||||
Object priorityChannel = context.getBean("priorityChannel");
|
||||
assertThat(priorityChannel, Matchers.not(Matchers.instanceOf(PriorityChannel.class)));
|
||||
assertThat(priorityChannel, Matchers.instanceOf(QueueChannel.class));
|
||||
assertThat(priorityChannel, Matchers.instanceOf(PriorityChannel.class));
|
||||
|
||||
QueueChannel channel = (QueueChannel) priorityChannel;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user