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 implementcom.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