@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 java.lang.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,
java.lang.Object message)
Must distribute the message to all of the matching topic subscribers.
|
static final java.lang.String HK2_DEFAULT_TOPIC_DISTRIBUTOR
ServiceLocatorUtilities
void distributeMessage(Topic<?> topic, java.lang.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 null