WriterChannel

inner class WriterChannel<T> : LogChannel<T>

A log channel implementation that is bound to a specific FateLogWriter.

WriterChannels are created by FateLogWriter and provide a convenient way to write typed objects to the log. Each channel maintains a reference to its parent writer and delegates write operations to it.

Parameters

T

The type of objects that can be written to this channel

name

The unique name of this channel

schema

The schema used to serialize objects for this channel

Properties

Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val schema: FateSchema<T>
Link copied to clipboard

Reference to the FateLogWriter that owns this channel.

Functions

Link copied to clipboard
open override fun put(obj: T)

Writes an object to this channel.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun write(obj: T)

Writes an object to this channel.