public class JournalEntryCommand extends Object implements io.atomix.copycat.Command<Void>, io.atomix.catalyst.serializer.CatalystSerializable
Constructor and Description |
---|
JournalEntryCommand()
No-arg constructor for use by Catalyst deserialization.
|
JournalEntryCommand(Journal.JournalEntry entry)
Constructs a
JournalEntryCommand for a journal entry. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getSerializedJournalEntry() |
int |
getSize() |
void |
readObject(io.atomix.catalyst.buffer.BufferInput<?> buffer,
io.atomix.catalyst.serializer.Serializer serializer) |
void |
writeObject(io.atomix.catalyst.buffer.BufferOutput<?> buffer,
io.atomix.catalyst.serializer.Serializer serializer) |
public JournalEntryCommand()
public JournalEntryCommand(Journal.JournalEntry entry)
JournalEntryCommand
for a journal entry.entry
- the journal entrypublic void writeObject(io.atomix.catalyst.buffer.BufferOutput<?> buffer, io.atomix.catalyst.serializer.Serializer serializer)
writeObject
in interface io.atomix.catalyst.serializer.CatalystSerializable
public void readObject(io.atomix.catalyst.buffer.BufferInput<?> buffer, io.atomix.catalyst.serializer.Serializer serializer)
readObject
in interface io.atomix.catalyst.serializer.CatalystSerializable
public int getSize()
public byte[] getSerializedJournalEntry()
Copyright © 2023. All Rights Reserved.