Enum TopicType
The topic type determines the type of the data values a topic publishes to subscribers.
Namespace: PushTechnology.ClientInterface.Client.Topics
Assembly: Diffusion.Client.dll
Syntax
public enum TopicType : byte
Remarks
Source Topics
Most topics are source topics. The characteristics of each type of source topic are summarized in the following table.
Topic typeStateData type | |
---|---|
STRING.Single scalar value.string . | |
INT64.Single scalar value.64-bit integer (long ). | |
DOUBLE.Single scalar value.
Double precision floating point number (double ).
| |
BINARY.Single scalar value.Arbitrary binary data. | |
RECORD_V2.Single composite value. IRecordV2. Diffusion-specific data type. A list of records, each composed of field values, with an optional schema. | |
JSON.Single composite value. IJSON, backed by CBOR-format binary. | |
TIME_SERIES.Append-only log of events. IEvent<TValue> containing a value of a well-known data type. |
Linked Topics
Linked topics republish values from source topics. The data type is inherited from the source topic.
There are two types of linked topic. A SLAVE topic has a fixed source topic. A ROUTING topic can have a different source topic for each subscription.
Fields
Name | Description |
---|---|
BINARY | Topic that stores and publishes binary values. |
DOUBLE | Topic that stores and publishes IEEE 754 double-precision floating point numbers. |
INT64 | Topic that stores and publishes 64-bit integer values. |
JSON | Topic that stores and publishes JSON (JavaScript Object Notation) values. |
RECORD_V2 | Topic that stores and publishes data in the form of records and fields. |
ROUTING | Routing Topic. |
SLAVE | Slave Topic. |
STRING | Topic that stores and publishes String values. |
TIME_SERIES | Time Series Topic. |
UNKNOWN | A topic type that is unsupported by the session. |