Class BinaryClassDescriptor


  • public class BinaryClassDescriptor
    extends Object
    Binary class descriptor.
    • Method Detail

      • typeId

        public int typeId()
        Returns:
        Type ID.
      • registered

        public boolean registered()
        Returns:
        Whether typeId has been successfully registered by MarshallerContext or not.
      • useOptimizedMarshaller

        public boolean useOptimizedMarshaller()
        Returns:
        true if OptimizedMarshaller must be used instead of BinaryMarshaller for object serialization and deserialization.
      • excluded

        public boolean excluded()
        Checks whether the class values are explicitly excluded from marshalling.
        Returns:
        true if excluded, false otherwise.
      • isWriteReplace

        public boolean isWriteReplace()
        Returns:
        True if write-replace should be performed for class.
      • writeReplace

        public Object writeReplace​(Object obj)
        Perform write replace.
        Parameters:
        obj - Original object.
        Returns:
        Replaced object.
      • registerStableSchema

        public void registerStableSchema()
        Register current stable schema if applicable.