Class: TopicResult

diffusion.topics. TopicResult


new TopicResult()

Encapsulates the result of a fetch invocation for a single selected topic.

Since:
  • 6.2

Methods


path()

Returns the topic path.

Returns:

the topic path

Type
String

specification()

Returns the topic specification.

If the request specified withProperties, the result reflect the topic's specification and can be used to create an identical topic. If the request did not specify withProperties, the specification's property map will be empty.

Returns:

the topic specification

Type
diffusion.topics.TopicSpecification

type()

Returns the topic type.

Returns:

the topic type

Type
diffusion.topics.TopicType

value()

Returns the topic value.

This will only return a value if the fetch request specified withValues and the topic actually had a value. For topics that have no value this will return undefined.

Returns:

the topic value or undefined if none available