public interface LogStreamBatchWriter extends LogStreamWriter
Note that the log entry data is buffered until LogStreamWriter.tryWrite() is called.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LogStreamBatchWriter.LogEntryBuilder
Builder to add a log entry to the batch.
|
| Modifier and Type | Method and Description |
|---|---|
LogStreamBatchWriter.LogEntryBuilder |
event()
Returns the builder to add a new log entry to the batch.
|
LogStreamBatchWriter |
producerId(int producerId)
Set the producer id for all log entries.
|
void |
reset()
Discard all non-written batch data.
|
LogStreamBatchWriter |
sourceRecordPosition(long position)
Set the source event for all log entries.
|
void |
wrap(LogStream log)
Initialize the write for the given log stream.
|
tryWritevoid wrap(LogStream log)
LogStreamBatchWriter sourceRecordPosition(long position)
LogStreamBatchWriter producerId(int producerId)
LogStreamBatchWriter.LogEntryBuilder event()
void reset()
Copyright © 2017–2018 camunda services GmbH. All rights reserved.