Package com.github.loki4j.client.writer
Interface Writer
-
- All Known Implementing Classes:
JsonWriter,ProtobufWriter
public interface Writer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanisEmpty()voidreset()voidserializeBatch(LogRecordBatch batch)intsize()byte[]toByteArray()voidtoByteBuffer(java.nio.ByteBuffer buffer)
-
-
-
Method Detail
-
serializeBatch
void serializeBatch(LogRecordBatch batch)
-
size
int size()
-
isEmpty
default boolean isEmpty()
-
toByteBuffer
void toByteBuffer(java.nio.ByteBuffer buffer)
-
toByteArray
byte[] toByteArray()
-
reset
void reset()
-
-