public interface SingleValueTopicDetails extends TopicDetails
Single Value
topic.
Such a topic maintains state at the server as single String value. This may be a simple string or it can have certain constraints (e.g. it is an integer value or a decimal value or its behavior is determined by a user written Java class).
The nature of the single value is specified using an field
metadata definition.
The easiest way to create an instance of such details is using
TopicControl.newDetails(TopicType)
, for example:
TopicControl control = session.feature(TopicControl.class);
TopicDetails details = control.newDetails(TopicType.SINGLE_VALUE);
The above would create details describing a topic with a simple string value.
Alternatively the details can be created using a builder obtained as
follows:
SingleValueTopicDetails.Builder builder = control.newDetailsBuilder(SingleValueTopicDetails.Builder.class);
Modifier and Type | Interface and Description |
---|---|
static interface |
SingleValueTopicDetails.Attributes
Single Value topic details attributes.
|
static interface |
SingleValueTopicDetails.Builder
Builder for Single Value topic details.
|
static interface |
SingleValueTopicDetails.Schema
Single Value topic details schema.
|
TopicDetails.Level
Modifier and Type | Method and Description |
---|---|
SingleValueTopicDetails.Builder |
newBuilder()
Returns a new builder initialized with the values from these details.
|
getAttributes, getLevel, getSchema, getType
SingleValueTopicDetails.Builder newBuilder()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.