com.esotericsoftware.kryo.Kryo.isRegistrationRequired()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(127)

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

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;
 }
};

相关文章