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 version)
Creates an IdentifiedDataSerializable instance using given type id and object version
|
public ArrayDataSerializableFactory(ConstructorFunction<Integer,IdentifiedDataSerializable>[] ctorArray)
public IdentifiedDataSerializable create(int typeId)
DataSerializableFactory
create
in interface DataSerializableFactory
typeId
- IdentifiedDataSerializable type idpublic IdentifiedDataSerializable create(int typeId, Version version)
VersionedDataSerializableFactory
create
in interface VersionedDataSerializableFactory
typeId
- IdentifiedDataSerializable type idversion
- version of the IdentifiedDataSerializable to createMemberVersion
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.