/** * @param factoryId factory ID of portableFactory to be registered * @param portableFactory portableFactory object to be registered * @return configured {@link com.hazelcast.config.SerializerConfig} for chaining * @see com.hazelcast.nio.serialization.PortableFactory */ public SerializationConfig addPortableFactory(int factoryId, PortableFactory portableFactory) { getPortableFactories().put(factoryId, portableFactory); return this; }
/** * @param factoryId factory ID of portableFactory to be registered * @param portableFactory portableFactory object to be registered * @return configured {@link com.hazelcast.config.SerializerConfig} for chaining * @see com.hazelcast.nio.serialization.PortableFactory */ public SerializationConfig addPortableFactory(int factoryId, PortableFactory portableFactory) { getPortableFactories().put(factoryId, portableFactory); return this; }
private void registerPortableFactories(Map<Integer, PortableFactory> portableFactories, SerializationConfig config) { for (Map.Entry<Integer, PortableFactory> entry : config.getPortableFactories().entrySet()) { int factoryId = entry.getKey(); PortableFactory factory = entry.getValue(); if (factoryId <= 0) { throw new IllegalArgumentException("PortableFactory factoryId must be positive! -> " + factory); } if (portableFactories.containsKey(factoryId)) { throw new IllegalArgumentException("PortableFactory with factoryId '" + factoryId + "' is already registered!"); } portableFactories.put(factoryId, factory); } }
private void registerPortableFactories(Map<Integer, PortableFactory> portableFactories, SerializationConfig config) { for (Map.Entry<Integer, PortableFactory> entry : config.getPortableFactories().entrySet()) { int factoryId = entry.getKey(); PortableFactory factory = entry.getValue(); if (factoryId <= 0) { throw new IllegalArgumentException("PortableFactory factoryId must be positive! -> " + factory); } if (portableFactories.containsKey(factoryId)) { throw new IllegalArgumentException("PortableFactory with factoryId '" + factoryId + "' is already registered!"); } portableFactories.put(factoryId, factory); } }
Map<Integer, PortableFactory> portableImpls = serialization.getPortableFactories(); if (!portableClasses.isEmpty() || !portableImpls.isEmpty()) { gen.open("portable-factories");
Map<Integer, PortableFactory> portableImpls = serialization.getPortableFactories(); if (!portableClasses.isEmpty() || !portableImpls.isEmpty()) { gen.open("portable-factories");
Map<Integer, PortableFactory> portableImpls = c.getPortableFactories(); if (!MapUtil.isNullOrEmpty(portableClasses) || !MapUtil.isNullOrEmpty(portableImpls)) { gen.open("portable-factories");
Map<Integer, PortableFactory> portableImpls = c.getPortableFactories(); if (!MapUtil.isNullOrEmpty(portableClasses) || !MapUtil.isNullOrEmpty(portableImpls)) { gen.open("portable-factories");