Interface IdentifiedDataSerializable

All Superinterfaces:
DataSerializable
All Known Implementing Classes:
Address, HazelcastExpiryPolicy, MemberVersion, ScheduledTaskHandler, SimpleTokenCredentials, UsernamePasswordCredentials, Version

public interface IdentifiedDataSerializable extends DataSerializable
IdentifiedDataSerializable is an extension to DataSerializable to avoid reflection during de-serialization.

Each IdentifiedDataSerializable is created by a registered DataSerializableFactory.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns type identifier for this class.
    int
    Returns DataSerializableFactory factory ID for this class.

    Methods inherited from interface com.hazelcast.nio.serialization.DataSerializable

    readData, writeData
  • Method Details

    • getFactoryId

      int getFactoryId()
      Returns DataSerializableFactory factory ID for this class.
      Returns:
      factory ID
    • getClassId

      int getClassId()
      Returns type identifier for this class. It should be unique per DataSerializableFactory.
      Returns:
      type ID