Package org.apache.juneau.console
Class TopicDecl
java.lang.Object
org.apache.juneau.console.TopicDecl
A custom topic declaration, for a card's
publishes or the page's top-level topics.
Example:
- Since:
- 10.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWho publishes a page-level topic. -
Method Summary
-
Method Details
-
of
- Parameters:
topic- A custom topic orns.name:*; orjob:*, which is only valid page-level withTopicDecl.Publisher.SERVER.- Returns:
- A new declaration.
- Throws:
IllegalArgumentException- E-45 for a framework family or an un-namespaced family; E-40 on bad syntax.
-
retain
- Parameters:
v- Whether the bus keeps the last value for late subscribers. Required. @return This object.
-
publisher
- Parameters:
p- Who publishes the topic. Page-level only. @return This object.
-
topic
- Returns:
- The topic.
-
toMap
- Returns:
- The page-level
$defs/topicDeclentry.
-
toPublicationMap
- Returns:
- The card-level
$defs/publicationentry, forCardSpec.publishes.
-