StreamSink

class StreamSink(val stream: OutputStream) : FateSink

Writes every entry to stream as is, whatever its kind.

FateLogWriter's OutputStream constructor wraps a stream in one of these.

Constructors

Link copied to clipboard
constructor(stream: OutputStream)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun flush()

Pushes anything buffered onward.

Link copied to clipboard
open override fun header(bytes: ByteArray)

The 4-byte magic and version that open a log.

Link copied to clipboard
open override fun messageEntry(bytes: ByteArray)

A complete message entry (kind 1). It carries one value for an already declared channel.

Link copied to clipboard
open override fun schemaEntry(bytes: ByteArray)

A complete schema entry (kind 0). It declares the channel at the next index.

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