Topic

data class Topic<T : Any>(val name: String, val clazz: KClass<T>)

Holds the topic key and data type information of messages.

Type Parameters

T

The type of the messages associated with this topic. Must be thread-safe.

Constructors

Link copied to clipboard
constructor(name: String, clazz: KClass<T>)

Properties

Link copied to clipboard
val clazz: KClass<T>

The Kotlin class reference for the generic type T, representing the type of the messages handled by the topic.

Link copied to clipboard

The name of the topic, used as an identifier in the messaging system.