StdoutOutputConsumer

@Singleton
@Secondary
class StdoutOutputConsumer(val stdout: PrintStream, clock: Clock, @Value(value = "${airbyte.connector.output.buffer-byte-size-threshold-for-flush:4096}") val bufferByteSizeThresholdForFlush: Int) : StandardOutputConsumer

Default implementation of OutputConsumer.

Constructors

Link copied to clipboard
constructor(stdout: PrintStream, clock: Clock, @Value(value = "${airbyte.connector.output.buffer-byte-size-threshold-for-flush:4096}") bufferByteSizeThresholdForFlush: Int)

Properties

Link copied to clipboard

bufferByteSizeThresholdForFlush triggers flushing the record buffer to stdout once the buffer's size (in bytes) grows past this value.

Link copied to clipboard

The constant emittedAt timestamp we use for record timestamps.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun accept(airbyteMessage: AirbyteMessage)
fun accept(analytics: AirbyteAnalyticsTraceMessage)
fun accept(catalog: AirbyteCatalog)
fun accept(status: AirbyteConnectionStatus)
fun accept(error: AirbyteErrorTraceMessage)
fun accept(estimate: AirbyteEstimateTraceMessage)
fun accept(log: AirbyteLogMessage)
fun accept(state: AirbyteStateMessage)
fun accept(streamStatus: AirbyteStreamStatusTraceMessage)
fun accept(trace: AirbyteTraceMessage)
fun accept(spec: ConnectorSpecification)
fun accept(destinationCatalog: DestinationCatalog)
open override fun accept(record: AirbyteRecordMessage)
Link copied to clipboard
open fun andThen(p0: Consumer<in AirbyteMessage>): Consumer<AirbyteMessage>
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun withLockFlush()