public abstract class RaftAtomicValueSnapshot<T> extends Object implements IdentifiedDataSerializable
RaftAtomicValueService state for a Raft group| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
destroyed |
protected Map<String,T> |
values |
| Constructor and Description |
|---|
RaftAtomicValueSnapshot() |
RaftAtomicValueSnapshot(Map<String,T> values,
Set<String> destroyed) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getDestroyed() |
Iterable<Map.Entry<String,T>> |
getValues() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
protected abstract T |
readValue(ObjectDataInput in) |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
protected abstract void |
writeValue(ObjectDataOutput out,
T value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassId, getFactoryIdpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.protected abstract void writeValue(ObjectDataOutput out, T value) throws IOException
IOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.protected abstract T readValue(ObjectDataInput in) throws IOException
IOExceptionCopyright © 2019 Hazelcast, Inc.. All rights reserved.