public final class HazelcastTopicMessageRouter extends Object
ITopic
s, routing messages on those topics to
designed consumers for processing.Modifier and Type | Class and Description |
---|---|
static interface |
HazelcastTopicMessageRouter.MessageConsumer<M> |
static interface |
HazelcastTopicMessageRouter.TopicFilter |
Constructor and Description |
---|
HazelcastTopicMessageRouter(Supplier<com.hazelcast.core.HazelcastInstance> hazelcastRef) |
Modifier and Type | Method and Description |
---|---|
<M> void |
registerMessageConsumer(HazelcastTopicMessageRouter.TopicFilter topicFilter,
HazelcastTopicMessageRouter.MessageConsumer<M> messageConsumer)
Registers a
HazelcastTopicMessageRouter.MessageConsumer to receive all messages from topics that pass the HazelcastTopicMessageRouter.TopicFilter . |
void |
unregisterAllMessageConsumers() |
public HazelcastTopicMessageRouter(Supplier<com.hazelcast.core.HazelcastInstance> hazelcastRef)
public <M> void registerMessageConsumer(HazelcastTopicMessageRouter.TopicFilter topicFilter, HazelcastTopicMessageRouter.MessageConsumer<M> messageConsumer)
HazelcastTopicMessageRouter.MessageConsumer
to receive all messages from topics that pass the HazelcastTopicMessageRouter.TopicFilter
.@PreDestroy public void unregisterAllMessageConsumers()
Copyright © 2003–2020 Atlassian. All rights reserved.