V
- The result value type. This would be Void unless the
request indicated that values
are to be returned, in which case this would be the value
class requested.public static interface Topics.FetchResult.TopicResult<V>
fetch
invocation for a single selected topic.Modifier and Type | Method and Description |
---|---|
String |
path()
Returns the topic path.
|
TopicSpecification |
specification()
Returns the topic specification.
|
TopicType |
type()
Returns the topic type.
|
V |
value()
Returns the topic value.
|
String path()
TopicType type()
This is a convenience method equivalent to calling
specification().getType()
.
V 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 null.
TopicSpecification 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.
Copyright © 2022 Push Technology Ltd. All Rights Reserved.