public interface VersionedDataSerializableFactory extends DataSerializableFactory
It extends the DataSerializableFactory so that it may also produce the newest/default objects outside the versioned-scope. If the creation of the object is done in the context of no versioning the default create(int typeId) method will be used.
Modifier and Type | Method and Description |
---|---|
IdentifiedDataSerializable |
create(int typeId,
Version clusterVersion,
Version wanProtocolVersion)
Creates an IdentifiedDataSerializable instance using given type ID and object version
|
create
IdentifiedDataSerializable create(int typeId, Version clusterVersion, Version wanProtocolVersion)
typeId
- IdentifiedDataSerializable type IDclusterVersion
- version of the object it should create - it's cluster version bound, since
objects change between release only. May be Version.UNKNOWN
if the
WAN protocol version is set or cluster version is not availablewanProtocolVersion
- WAN protocol version. May be Version.UNKNOWN
if the
cluster version is set or WAN protocol version is not availableMemberVersion
Copyright © 2019 Hazelcast, Inc.. All rights reserved.