use of com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory in project hazelcast by hazelcast.
the class ManagementDataSerializerHook method createFactory.
@Override
@SuppressWarnings("unchecked")
public DataSerializableFactory createFactory() {
ConstructorFunction<Integer, IdentifiedDataSerializable>[] constructors = new ConstructorFunction[LEN];
constructors[UPDATE_MAP_CONFIG] = arg -> new UpdateMapConfigOperation();
constructors[SET_LICENSE] = arg -> new SetLicenseOperation();
constructors[CHANGE_CLUSTER_STATE] = arg -> new ChangeClusterStateOperation();
constructors[UPDATE_PERMISSION_CONFIG_OPERATION] = arg -> new UpdatePermissionConfigOperation();
constructors[RELOAD_CONFIG_OPERATION] = arg -> new ReloadConfigOperation();
constructors[UPDATE_CONFIG_OPERATION] = arg -> new UpdateConfigOperation();
return new ArrayDataSerializableFactory(constructors);
}
use of com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory in project hazelcast by hazelcast.
the class UserCodeDeploymentSerializerHook method createFactory.
@Override
public DataSerializableFactory createFactory() {
ConstructorFunction<Integer, IdentifiedDataSerializable>[] constructors = new ConstructorFunction[LEN];
constructors[CLASS_DATA] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
@Override
public IdentifiedDataSerializable createNew(Integer arg) {
return new ClassData();
}
};
constructors[CLASS_DATA_FINDER_OP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
@Override
public IdentifiedDataSerializable createNew(Integer arg) {
return new ClassDataFinderOperation();
}
};
constructors[DEPLOY_CLASSES_OP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {
@Override
public IdentifiedDataSerializable createNew(Integer arg) {
return new DeployClassesOperation();
}
};
return new ArrayDataSerializableFactory(constructors);
}
Aggregations