20 Kasım 2023 Pazartesi

IdentifiedDataSerializable Serialization

Giriş
Açıklaması şöyle
IdentifiedDataSerializable extends DataSerializable and introduces the following methods:
  int getClassId();
  int getFactoryId();

IdentifiedDataSerializable uses getClassId() instead of class name and it uses getFactoryId() to load the class when given the id. 

To complete the implementation, you should also implement
com.hazelcast.nio.serialization.DataSerializableFactory and register it into SerializationConfig, which can be accessed from Config.getSerializationConfig()

Factory’s responsibility is to return an instance of the right IdentifiedDataSerializable object, given the id. 

Hiç yorum yok:

Yorum Gönder

THIRD-PARTY.txt Dosyası

Kullanılan harici kütüphanelerin sürümleri bu dosyada Dosyanın yolu şöyle hazelcast/licenses/THIRD-PARTY.txt