本文整理了Java中com.hazelcast.config.Config.setSerializationConfig()
方法的一些代码示例,展示了Config.setSerializationConfig()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.setSerializationConfig()
方法的具体详情如下:
包路径:com.hazelcast.config.Config
类名称: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());
}
内容来源于网络,如有侵权,请联系作者删除!