Class DeleteSnapshotGlobalStateSerializer
java.lang.Object
org.apache.ignite.internal.versioned.VersionedSerializer<DeleteSnapshotGlobalState>
org.gridgain.internal.snapshots.communication.metastorage.DeleteSnapshotGlobalStateSerializer
public class DeleteSnapshotGlobalStateSerializer
extends org.apache.ignite.internal.versioned.VersionedSerializer<DeleteSnapshotGlobalState>
VersionedSerializer for DeleteSnapshotGlobalState instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DeleteSnapshotGlobalStateSerializerSerializer instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteSnapshotGlobalStatedeserialize(byte[] bytes) Deserializes the given byte array to aDeleteSnapshotGlobalStateinstance.protected DeleteSnapshotGlobalStatereadExternalData(byte protoVer, org.apache.ignite.internal.util.io.IgniteDataInput in) static byte[]Serializes the givenDeleteSnapshotGlobalStateinstance to a byte array.protected voidwriteExternalData(DeleteSnapshotGlobalState state, org.apache.ignite.internal.util.io.IgniteDataOutput out) Methods inherited from class org.apache.ignite.internal.versioned.VersionedSerializer
getProtocolVersion, readByteArrayWithLength, readExternal, readNullableString, readNullableUuid, readStringSet, readUuidSet, readVarIntSet, writeByteArrayWithLength, writeExternal, writeNullableString, writeNullableUuid, writeStringSet, writeUuidSet, writeVarIntSet
-
Field Details
-
INSTANCE
Serializer instance.
-
-
Constructor Details
-
DeleteSnapshotGlobalStateSerializer
public DeleteSnapshotGlobalStateSerializer()
-
-
Method Details
-
writeExternalData
protected void writeExternalData(DeleteSnapshotGlobalState state, org.apache.ignite.internal.util.io.IgniteDataOutput out) throws IOException - Specified by:
writeExternalDatain classorg.apache.ignite.internal.versioned.VersionedSerializer<DeleteSnapshotGlobalState>- Throws:
IOException
-
readExternalData
protected DeleteSnapshotGlobalState readExternalData(byte protoVer, org.apache.ignite.internal.util.io.IgniteDataInput in) throws IOException - Specified by:
readExternalDatain classorg.apache.ignite.internal.versioned.VersionedSerializer<DeleteSnapshotGlobalState>- Throws:
IOException
-
serialize
Serializes the givenDeleteSnapshotGlobalStateinstance to a byte array.- Parameters:
state- State to serialize.- Returns:
- Serialized state.
-
deserialize
Deserializes the given byte array to aDeleteSnapshotGlobalStateinstance.- Parameters:
bytes- Bytes to deserialize.- Returns:
- Deserialized state.
-