Enum Class TopicType
- All Implemented Interfaces:
Serializable,Comparable<TopicType>,Constable
Source Topics
Most topics are source topics. The characteristics of each type of source topic are summarized in the following table.| Topic type | State | Data type |
|---|---|---|
STRING |
Single scalar value. | String. |
INT64 |
Single scalar value. | 64-bit integer. |
DOUBLE |
Single scalar value. | Double precision floating point number. |
BINARY |
Single scalar value. | Arbitrary binary data. |
RECORD_V2 |
Single composite value. | RecordV2 – Diffusion-specific data type. A list of records,
each composed of field values, with an optional schema. |
JSON |
Single composite value. | JSON, backed by
CBOR-format binary. |
TIME_SERIES |
Append-only log of events. | TimeSeries.Event containing a value of a well-known data
type. |
- Since:
- 5.0
- Author:
- DiffusionData Limited
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTopic that stores and publishes binary values.Topic that stores and publishes IEEE 754 double-precision floating point numbers.Topic that stores and publishes 64-bit integer values.Topic that stores and publishes JSON (JavaScript Object Notation) values.Topic that stores and publishes data in the form of records and fields.Topic that stores and publishes String values.Time Series Topic.A topic type that is unsupported by the session. -
Method Summary
-
Enum Constant Details
-
JSON
Topic that stores and publishes JSON (JavaScript Object Notation) values. Based on theJSON data type.Supports delta-streams.
- Since:
- 5.7
-
BINARY
Topic that stores and publishes binary values. Based on thebinary data type.Supports delta-streams.
- Since:
- 5.7
-
RECORD_V2
Topic that stores and publishes data in the form of records and fields. Based on theRecordV2data type.Supports delta-streams.
- Since:
- 6.0
-
DOUBLE
Topic that stores and publishes IEEE 754 double-precision floating point numbers. Based on thedouble data type.Supports null Double values.
The topic does not support delta-streams — only complete values are transmitted.
- Since:
- 6.0
-
INT64
Topic that stores and publishes 64-bit integer values. Based on theint64 data type.Supports null Long values.
The topic does not support delta-streams — only complete values are transmitted.
- Since:
- 6.0
-
STRING
Topic that stores and publishes String values. Based on thestring data type.Supports null String values.
Supports delta-streams.
- Since:
- 6.0
-
TIME_SERIES
Time Series Topic.A time series is a sequence of events. Each event contains a value and has server-assigned metadata comprised of a sequence number, timestamp, and author.
A time series topic allows sessions to access a time series that is maintained by the server. A time series topic has an associated
event data type, such asBinary,String, orJSON, that determines the type of value associated with each event.Retained range
The
TIME_SERIES_SUBSCRIPTION_RANGEproperty configures the range of historic events retained by a time series topic. If the property is not specified, a time series topic will retain the ten most recent events.Subscription range
The
TIME_SERIES_SUBSCRIPTION_RANGEproperty configures a time series topic to send a range of historic events from the end of the time series to new subscribers. This is a convenient way to synchronize new subscribers without requiring the use of arange query.By default, new subscribers will be sent the latest event if delta streams are enabled and no events if delta streams are disabled. See the description of Subscription range in the
time series featuredocumentation.Mandatory properties
The
TIME_SERIES_EVENT_VALUE_TYPEproperty must be provided when creating a time series topic.- Since:
- 6.0
- See Also:
-
UNKNOWN_TOPIC_TYPE
A topic type that is unsupported by the session.- Since:
- 6.1
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-