Module org.elasticsearch.server
Package org.elasticsearch.cluster
Interface NamedDiff<T extends Diffable<T>>
- All Superinterfaces:
Diff<T>,NamedWriteable,Writeable
- All Known Implementing Classes:
IndexGraveyard.IndexGraveyardDiff,NodesShutdownMetadata.NodeShutdownMetadataDiff,RegisteredPolicySnapshots.RegisteredSnapshotsDiff
Diff that also support NamedWriteable interface
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Method Summary
Modifier and TypeMethodDescriptionThe minimal version of the recipient this object can be sent to.default booleansupportsVersion(TransportVersion version) Determines whether this instance should be serialized based on the provided transport version.Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
-
Method Details
-
getMinimalSupportedVersion
TransportVersion getMinimalSupportedVersion()The minimal version of the recipient this object can be sent to. SeesupportsVersion(TransportVersion)for the default serialization check. -
supportsVersion
Determines whether this instance should be serialized based on the provided transport version. The default implementation returnstrueif the given transport version is equal to or newer thangetMinimalSupportedVersion(). Subclasses may override this method to define custom serialization logic.- Parameters:
version- the transport version of the receiving node- Returns:
trueif the instance should be serialized,falseotherwise
-