com.hazelcast.config.Config.setSerializationConfig()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(141)

本文整理了Java中com.hazelcast.config.Config.setSerializationConfig()方法的一些代码示例,展示了Config.setSerializationConfig()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.setSerializationConfig()方法的具体详情如下:
包路径:com.hazelcast.config.Config
类名称:Config
方法名:setSerializationConfig

Config.setSerializationConfig介绍

[英]Sets the serialization configuration for this hazelcast instance. The serialization configuration defines how objects are serialized and deserialized on this instance.
[中]设置此hazelcast实例的序列化配置。序列化配置定义如何在此实例上序列化和反序列化对象。

代码示例

代码示例来源:origin: com.hazelcast/hazelcast-all

private void handleSerialization(Node node) {
  SerializationConfig serializationConfig = parseSerialization(node);
  config.setSerializationConfig(serializationConfig);
}

代码示例来源:origin: hazelcast/hazelcast-jet

private void handleSerialization(Node node) {
  SerializationConfig serializationConfig = parseSerialization(node);
  config.setSerializationConfig(serializationConfig);
}

代码示例来源:origin: com.sitewhere/sitewhere-core

/**
 * Set up serialization configuration.
 * 
 * @param config
 */
public static void performSerializationOverrides(Config config) {
SerializationConfig serial = config.getSerializationConfig();
if (serial == null) {
  serial = new SerializationConfig();
  config.setSerializationConfig(serial);
}
config.setSerializationConfig(null);
}

代码示例来源:origin: hazelcast/hazelcast-code-samples

private static Config createConfig() {
  return new Config()
      .setLicenseKey(ENTERPRISE_LICENSE_KEY)
      .setNativeMemoryConfig(createMemoryConfig())
      .setSerializationConfig(createSerializationConfig());
}

相关文章

Config类方法