public final class ArrayDataSerializableFactory extends Object implements VersionedDataSerializableFactory
| Constructor and Description |
|---|
ArrayDataSerializableFactory(ConstructorFunction<Integer,IdentifiedDataSerializable>[] ctorArray) |
| Modifier and Type | Method and Description |
|---|---|
IdentifiedDataSerializable |
create(int typeId)
Creates an IdentifiedDataSerializable instance using given type ID
|
IdentifiedDataSerializable |
create(int typeId,
Version clusterVersion,
Version wanProtocolVersion)
Creates an IdentifiedDataSerializable instance using given type ID and object version
|
public ArrayDataSerializableFactory(ConstructorFunction<Integer,IdentifiedDataSerializable>[] ctorArray)
public IdentifiedDataSerializable create(int typeId)
DataSerializableFactorycreate in interface DataSerializableFactorytypeId - IdentifiedDataSerializable type IDnull if type ID is not known by this factorypublic IdentifiedDataSerializable create(int typeId, Version clusterVersion, Version wanProtocolVersion)
VersionedDataSerializableFactorycreate in interface VersionedDataSerializableFactorytypeId - 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 availableMemberVersionCopyright © 2019 Hazelcast, Inc.. All rights reserved.