@Contract public interface TopicDistributionService
A default implementation of this service is provided by HK2 and can
be added to the system with the
ServiceLocatorUtilities.enableTopicDistribution(org.glassfish.hk2.api.ServiceLocator)
method. The default implementation will be named "HK2TopicDistributionService"
Modifier and Type | Field and Description |
---|---|
static String |
HK2_DEFAULT_TOPIC_DISTRIBUTOR
The name of the default TopicDistributionService that is added by
ServiceLocatorUtilities |
Modifier and Type | Method and Description |
---|---|
void |
distributeMessage(Topic<?> topic,
Object message)
Must distribute the message to all of the matching topic subscribers.
|
static final String HK2_DEFAULT_TOPIC_DISTRIBUTOR
ServiceLocatorUtilities
void distributeMessage(Topic<?> topic, Object message)
topic
- The topic to which to distribute the message. Must not be nullmessage
- The message to send to the topic. Must not be nullCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.