Package com.hazelcast.nio.serialization
Interface IdentifiedDataSerializable
- All Superinterfaces:
DataSerializable
- All Known Implementing Classes:
Address
,HazelcastExpiryPolicy
,MemberVersion
,ScheduledTaskHandler
,SimpleTokenCredentials
,UsernamePasswordCredentials
,Version
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 TypeMethodDescriptionint
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
-