| Modifier and Type | Field and Description |
|---|---|
| private final ServiceLocatorImpl | |
| private final Set | |
| private final Type |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Set | getTopicQualifiers()
Implements org. The qualifiers associated with this Topic. |
| public Type | getTopicType()
Implements org. Gets the type of the topic, in order to match the message to subscribers |
| public Topic | named(String name)
Implements org. Returns an Topic that is further qualified with the given name |
| public <U> Topic | ofType(Type type)
Implements org. Returns an Topic that is of the given type. |
| public void | publish(T message)
Implements org. Publishes a message to all subscribers |
| public Topic | qualifiedWith(Annotation... qualifiers)
Implements org. A set of qualifiers to further restrict this Topic to. |
| locator | back to summary |
|---|---|
| private final ServiceLocatorImpl locator | |
| requiredQualifiers | back to summary |
|---|---|
| private final Set<Annotation> requiredQualifiers | |
| topicType | back to summary |
|---|---|
| private final Type topicType | |
| TopicImpl | back to summary |
|---|---|
| pack-priv TopicImpl(ServiceLocatorImpl locator, Type topicType, Set<Annotation> requiredQualifiers) | |
| getTopicQualifiers | back to summary |
|---|---|
| public Set Implements org. Doc from org. The qualifiers associated with this Topic. Messages should only be distributed to subscribers that have matching qualifiers
| |
| getTopicType | back to summary |
|---|---|
| public Type getTopicType() Implements org. Doc from org. Gets the type of the topic, in order to match the message to subscribers
| |
| named | back to summary |
|---|---|
| public Topic Implements org. Doc from org. Returns an Topic that is further qualified with the given name
| |
| ofType | back to summary |
|---|---|
| public <U> Topic Implements org. Doc from org. Returns an Topic that is of the given type. This type must be more specific than the type of this Topic
| |
| publish | back to summary |
|---|---|
| public void publish(T message) Implements org. Doc from org. Publishes a message to all subscribers
| |
| qualifiedWith | back to summary |
|---|---|
| public Topic Implements org. Doc from org. A set of qualifiers to further restrict this Topic to.
| |