Interface VersionAware

All Known Subinterfaces:
ObjectDataInput, ObjectDataOutput

public interface VersionAware
An instance which supports versioning.

It may be any version (cluster version, node version, custom version, etc.), that is up to the implementer.

Since:
3.8
  • Method Summary

    Modifier and Type Method Description
    Version getVersion()  
    void setVersion​(Version version)
    If the serializer supports versioning it may set the version to use for the serialization on this object.
  • Method Details

    • getVersion

      Version getVersion()
      Returns:
      the version or Version.UNKNOWN if version is unknown to the object
    • setVersion

      void setVersion​(Version version)
      If the serializer supports versioning it may set the version to use for the serialization on this object.
      Parameters:
      version - version to set