public class LogEntry extends Object implements ICorfuSerializable
Modifier and Type | Class and Description |
---|---|
static class |
LogEntry.LogEntryType |
Modifier and Type | Field and Description |
---|---|
protected CorfuRuntime |
runtime
The runtime to use.
|
Constructor and Description |
---|
LogEntry(LogEntry.LogEntryType type)
Constructor for generating LogEntries.
|
Modifier and Type | Method and Description |
---|---|
static ICorfuSerializable |
deserialize(io.netty.buffer.ByteBuf b,
CorfuRuntime rt)
The base LogEntry format is very simple.
|
boolean |
isMutation(UUID stream)
Returns whether the entry changes the contents of the stream.
|
void |
serialize(io.netty.buffer.ByteBuf b)
Serialize the given LogEntry into a given byte buffer.
|
protected CorfuRuntime runtime
public LogEntry(LogEntry.LogEntryType type)
type
- The type of log entry to instantiate.public static ICorfuSerializable deserialize(io.netty.buffer.ByteBuf b, CorfuRuntime rt)
b
- The buffer to deserialize.public void serialize(io.netty.buffer.ByteBuf b)
serialize
in interface ICorfuSerializable
b
- The buffer to serialize into.public boolean isMutation(UUID stream)
Copyright © 2019 CorfuDB. All rights reserved.