GoldenGateBindings / com.fitbit.goldengate.bindings.util / MemoryDataSource

MemoryDataSource

class MemoryDataSource : NativeReference, Closeable

In-Memory DataSource that is intended to be used for testing

Parameters

data - data that will be sent from this DataSource

chunkSize - start call will send one packet for each chunkSize (default to send all data in one packet)

Constructors

<init>

MemoryDataSource(data: ByteArray, chunkSize: Int = data.size)

In-Memory DataSource that is intended to be used for testing

Properties

thisPointer

val thisPointer: Long

Pointer to native jni reference for this object

Functions

attach

fun attach(dataSinkPtr: Long): Unit

Attach a DataSink that will receive data from this source

close

fun close(): Unit

start

fun start(): Unit

Start sending the data from buffer to attached DataSink.