public class SnapshotEntry extends LogEntry implements IdentifiedDataSerializable
RaftLog.
Snapshot entry is sent to followers via
InstallSnapshot RPC.
| Constructor and Description |
|---|
SnapshotEntry() |
SnapshotEntry(int term,
long index,
Object operation,
long groupMembersLogIndex,
Collection<Endpoint> groupMembers) |
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Returns type identifier for this class.
|
Collection<Endpoint> |
groupMembers() |
long |
groupMembersLogIndex() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
String |
toString(boolean detailed) |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
getFactoryId, index, operation, termclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFactoryIdpublic SnapshotEntry()
public SnapshotEntry(int term,
long index,
Object operation,
long groupMembersLogIndex,
Collection<Endpoint> groupMembers)
public long groupMembersLogIndex()
public Collection<Endpoint> groupMembers()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializablewriteData in class LogEntryout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablereadData in class LogEntryin - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.public int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablegetId in class LogEntrypublic String toString(boolean detailed)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.