createChannel
Creates a new log channel with the specified name and schema, and adds it to the log.
Return
A new WriterChannel bound to this writer
Parameters
The type of objects that will be written to this channel
The unique name for the channel
The schema defining how objects of type T will be serialized
Throws
if a channel with the same name already exists
Creates a new log channel with the specified name and automatically inferred schema.
The schema is automatically derived from the provided Java class using reflection. This is convenient for simple data classes but may not work for complex types.
Return
A new WriterChannel bound to this writer
Parameters
The type of objects that will be written to this channel
The unique name for the channel
The Java class to derive the schema from
Throws
if a channel with the same name already exists
Creates a new log channel with the specified name and automatically inferred schema.
The schema is automatically derived from the provided Kotlin class using reflection. This is convenient for simple data classes but may not work for complex types.
Return
A new WriterChannel bound to this writer
Parameters
The type of objects that will be written to this channel
The unique name for the channel
The Kotlin class to derive the schema from
Throws
if a channel with the same name already exists