Class PortableId

java.lang.Object
com.hazelcast.nio.serialization.PortableId
All Implemented Interfaces:
DataSerializable

@Deprecated(since="5.4", forRemoval=true) public class PortableId extends Object implements DataSerializable
Deprecated, for removal: This API element is subject to removal in a future version.
Portable Serialization has been deprecated. We recommend you use Compact Serialization as Portable Serialization will be removed as of version 7.0.
Uniquely defines a Portable class.
Since:
5.4
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    PortableId(int factoryId, int classId, int version)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Reads fields from the input stream
    void
    setVersionIfNotSet(int version)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Writes object fields to output stream

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PortableId

      @PrivateApi public PortableId()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • PortableId

      public PortableId(int factoryId, int classId, int version)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getFactoryId

      public int getFactoryId()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getClassId

      public int getClassId()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getVersion

      public int getVersion()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setVersionIfNotSet

      @PrivateApi public void setVersionIfNotSet(int version)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object
    • writeData

      public void writeData(ObjectDataOutput out) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: DataSerializable
      Writes object fields to output stream
      Specified by:
      writeData in interface DataSerializable
      Parameters:
      out - output
      Throws:
      IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
    • readData

      public void readData(ObjectDataInput in) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: DataSerializable
      Reads fields from the input stream
      Specified by:
      readData in interface DataSerializable
      Parameters:
      in - input
      Throws:
      IOException - if an I/O error occurs. In particular, an IOException may be thrown if the input stream has been closed.
    • equals

      public boolean equals(Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class Object