本文整理了Java中com.esotericsoftware.kryo.Kryo.isRegistrationRequired()
方法的一些代码示例,展示了Kryo.isRegistrationRequired()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Kryo.isRegistrationRequired()
方法的具体详情如下:
包路径:com.esotericsoftware.kryo.Kryo
类名称:Kryo
方法名:isRegistrationRequired
暂无
代码示例来源:origin: com.tinkerpop/gremlin-core
@Override
public void reset() {
if (!kryo.isRegistrationRequired()) {
if (classToNameId != null) classToNameId.clear();
if (nameIdToClass != null) nameIdToClass.clear();
nextNameId = 0;
}
}
}
代码示例来源:origin: com.esotericsoftware.kryo/kryo
public void reset () {
if (!kryo.isRegistrationRequired()) {
if (classToNameId != null) classToNameId.clear();
if (nameIdToClass != null) nameIdToClass.clear();
nextNameId = 0;
}
}
}
代码示例来源:origin: com.esotericsoftware/kryo
public void reset () {
if (!kryo.isRegistrationRequired()) {
if (classToNameId != null) classToNameId.clear(2048);
if (nameIdToClass != null) nameIdToClass.clear();
nextNameId = 0;
}
}
}
代码示例来源:origin: hank-whu/turbo-rpc
public void reset() {
if (!kryo.isRegistrationRequired()) {
if (classToNameId != null)
classToNameId.clear();
if (nameIdToClass != null)
nameIdToClass.clear();
nextNameId = 0;
}
}
代码示例来源:origin: com.esotericsoftware/kryo-shaded
public void reset () {
if (!kryo.isRegistrationRequired()) {
if (classToNameId != null) classToNameId.clear(2048);
if (nameIdToClass != null) nameIdToClass.clear();
nextNameId = 0;
}
}
}
代码示例来源:origin: svn2github/kryo
public void reset () {
if (!kryo.isRegistrationRequired()) {
if (classToNameId != null) classToNameId.clear();
if (nameIdToClass != null) nameIdToClass.clear();
nextNameId = 0;
}
}
}
代码示例来源:origin: com.twitter/chill-java
public Kryo newKryo() {
Kryo k = KryoInstantiator.this.newKryo();
/** Try to avoid calling this method if you don't need to.
* We've been burned by binary compatibility with Kryo
*/
if(k.isRegistrationRequired() != req) { k.setRegistrationRequired(req); }
return k;
}
};
代码示例来源:origin: tv.cntt/chill-scala-2-11
public Kryo newKryo() {
Kryo k = KryoInstantiator.this.newKryo();
/** Try to avoid calling this method if you don't need to.
* We've been burned by binary compatibility with Kryo
*/
if(k.isRegistrationRequired() != req) { k.setRegistrationRequired(req); }
return k;
}
};
内容来源于网络,如有侵权,请联系作者删除!