Modifier and Type | Method and Description |
---|---|
Set<Annotation> |
getTopicQualifiers()
The qualifiers associated with this Topic.
|
Type |
getTopicType()
Gets the type of the topic, in order to match the message
to subscribers
|
Topic<T> |
named(String name)
Returns an Topic that is further qualified
with the given name
|
<U> Topic<U> |
ofType(Type type)
Returns an Topic that is of the given type.
|
void |
publish(T message)
Publishes a message to all subscribers
|
Topic<T> |
qualifiedWith(Annotation... qualifiers)
A set of qualifiers to further restrict this Topic to.
|
public void publish(T message)
Topic
public Topic<T> named(String name)
Topic
public <U> Topic<U> ofType(Type type)
Topic
public Topic<T> qualifiedWith(Annotation... qualifiers)
Topic
qualifiedWith
in interface Topic<T>
qualifiers
- The qualifiers to further restrict this Topic topublic Type getTopicType()
Topic
getTopicType
in interface Topic<T>
public Set<Annotation> getTopicQualifiers()
Topic
getTopicQualifiers
in interface Topic<T>
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.