public static interface LogRecordSet.Writer extends LogRecordSetBuffer
LogRecords to LogRecordSet.| Modifier and Type | Method and Description |
|---|---|
void |
writeRecord(ByteBuffer record,
com.twitter.util.Promise<DLSN> transmitPromise)
Write a
LogRecord to this record set. |
abortTransmit, completeTransmit, getBuffer, getNumBytes, getNumRecordsvoid writeRecord(ByteBuffer record, com.twitter.util.Promise<DLSN> transmitPromise) throws LogRecordTooLongException, WriteException
LogRecord to this record set.record - record to writetransmitPromise - callback for transmit result. the promise is only
satisfied when this record set is transmitted.LogRecordTooLongException - if the record is too longWriteException - when encountered exception writing the recordCopyright © 2016. All Rights Reserved.