Closed
Description
Expected Behavior
The code snippet in the hazelcast.adoc documentation (section Message Channels with Hazelcast) should provide the correct way of instantiating the QueueChannel.
@Bean
PollableChannel hazelcastQueueChannel(HazelcastInstance hazelcastInstance) {
return new QueueChannel(hazelcastInstance.getQueue("springIntegrationQueue"));
}
Current Behavior
There is some code in the code snippet that should not be there. (Message<?>>)
@Bean
PollableChannel hazelcastQueueChannel(HazelcastInstance hazelcastInstance) {
return new QueueChannel(hazelcastInstance.Message<?>>getQueue("springIntegrationQueue"));
}
Context
By looking at the documentation and deciding which message channel approach I would be using, I found this code snippet to be weird-looking and seemingly incorrect.