Class SpaceTypeDescriptorVersionedSerializationUtils

java.lang.Object
com.gigaspaces.metadata.SpaceTypeDescriptorVersionedSerializationUtils

public class SpaceTypeDescriptorVersionedSerializationUtils extends Object
Provided utility methods to serialize/deserialize space type descriptors. The serialiable form contains a version header which allowes it to be deserialized to a version compatible space type descriptor
Since:
9.1.1
Author:
Dan Kilman
  • Constructor Details

    • SpaceTypeDescriptorVersionedSerializationUtils

      public SpaceTypeDescriptorVersionedSerializationUtils()
  • Method Details

    • toSerializableForm

      public static Serializable toSerializableForm(SpaceTypeDescriptor typeDescriptor)
      Returns:
      A serializable form of the given type descriptor that upon serialization will write a version header
    • fromSerializableForm

      public static SpaceTypeDescriptor fromSerializableForm(Serializable versionedSerializableForm)
      Reads the version header for the given serializable form and returned a SpaceTypeDescriptor matching that version
      Returns:
      the original SpaceTypeDescriptor passed to the method toSerializableForm