Interface NamedDiff<T extends Diffable<T>>

All Superinterfaces:
Diff<T>, NamedWriteable, Writeable
All Known Implementing Classes:
IndexGraveyard.IndexGraveyardDiff, NodesShutdownMetadata.NodeShutdownMetadataDiff, RegisteredPolicySnapshots.RegisteredSnapshotsDiff

public interface NamedDiff<T extends Diffable<T>> extends Diff<T>, NamedWriteable
Diff that also support NamedWriteable interface
  • Method Details

    • getMinimalSupportedVersion

      TransportVersion getMinimalSupportedVersion()
      The minimal version of the recipient this object can be sent to. See supportsVersion(TransportVersion) for the default serialization check.
    • supportsVersion

      default boolean supportsVersion(TransportVersion version)
      Determines whether this instance should be serialized based on the provided transport version. The default implementation returns true if the given transport version is equal to or newer than getMinimalSupportedVersion(). Subclasses may override this method to define custom serialization logic.
      Parameters:
      version - the transport version of the receiving node
      Returns:
      true if the instance should be serialized, false otherwise