141.4. 주제 소비자 - 출처("hazelcast-topic:foo")
topic 소비자는 하나의 작업(받기)만 제공합니다. 이 구성 요소는 주제와 관련하여 예상대로 여러 소비를 지원하므로 동일한 hazelcast 주제에서 필요한 만큼의 소비자를 확보할 수 있습니다.
fromF("hazelcast-%sfoo", HazelcastConstants.TOPIC_PREFIX)
.choice()
.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.RECEIVED))
.log("...message received")
.otherwise()
.log("...this should never have happened")