Top Interfaces Annotations
module org.glassfish.hk2.api

Package org.glassfish.hk2.api.messaging


Interface Summary

Modifier and TypeInterface and Description
public interface
Topic<
The type of event to be distributed to subscribers
T
>

This service is used for publishing events to subscribers.

public interface
TopicDistributionService

This service is responsible for distributing messages to Topic subscribers

A default implementation of this service is provided by HK2 and can be added to the system with the org.glassfish.hk2.utilities.ServiceLocatorUtilities#enableTopicDistribution(org.glassfish.hk2.api.ServiceLocator) method.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
MessageReceiver

This qualifier must be placed on any hk2 descriptor that can receive messages.

public @interface
SubscribeTo

This annotation is put onto one parameter of a method to indicate that this method should be called whenever a Topic sends a message.