当前位置: 首页>>代码示例>>Java>>正文


Java SerializerRegistry类代码示例

本文整理汇总了Java中io.atomix.catalyst.serializer.SerializerRegistry的典型用法代码示例。如果您正苦于以下问题:Java SerializerRegistry类的具体用法?Java SerializerRegistry怎么用?Java SerializerRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SerializerRegistry类属于io.atomix.catalyst.serializer包,在下文中一共展示了SerializerRegistry类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: resolve

import io.atomix.catalyst.serializer.SerializerRegistry; //导入依赖的package包/类
@Override
public void resolve(SerializerRegistry registry) {
    registry.register(ContainsKey.class, -1000);
    registry.register(ContainsValue.class, -1001);
    registry.register(ContainsEntry.class, -1002);
    registry.register(Replace.class, -1003);
    registry.register(Clear.class, -1004);
    registry.register(KeySet.class, -1005);
    registry.register(Keys.class, -1006);
    registry.register(Values.class, -1007);
    registry.register(Entries.class, -1008);
    registry.register(Size.class, -1009);
    registry.register(IsEmpty.class, -1010);
    registry.register(Get.class, -1011);
    registry.register(Put.class, -1012);
    registry.register(RemoveAll.class, -1013);
    registry.register(MultiRemove.class, -1014);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:19,代码来源:AsyncConsistentMultimapCommands.java

示例2: resolve

import io.atomix.catalyst.serializer.SerializerRegistry; //导入依赖的package包/类
@Override
public void resolve(SerializerRegistry registry) {
    registry.register(ContainsKey.class, -761);
    registry.register(ContainsValue.class, -762);
    registry.register(Get.class, -763);
    registry.register(EntrySet.class, -764);
    registry.register(Values.class, -765);
    registry.register(KeySet.class, -766);
    registry.register(Clear.class, -767);
    registry.register(IsEmpty.class, -768);
    registry.register(Size.class, -769);
    registry.register(Listen.class, -770);
    registry.register(Unlisten.class, -771);
    registry.register(TransactionPrepare.class, -772);
    registry.register(TransactionCommit.class, -773);
    registry.register(TransactionRollback.class, -774);
    registry.register(TransactionPrepareAndCommit.class, -775);
    registry.register(UpdateAndGet.class, -776);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:20,代码来源:AtomixConsistentMapCommands.java

示例3: resolve

import io.atomix.catalyst.serializer.SerializerRegistry; //导入依赖的package包/类
@Override
public void resolve(SerializerRegistry registry) {
    registry.register(Run.class, -861);
    registry.register(Withdraw.class, -862);
    registry.register(Anoint.class, -863);
    registry.register(GetAllLeaderships.class, -864);
    registry.register(GetElectedTopics.class, -865);
    registry.register(GetLeadership.class, -866);
    registry.register(Listen.class, -867);
    registry.register(Unlisten.class, -868);
    registry.register(Promote.class, -869);
    registry.register(Evict.class, -870);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:14,代码来源:AtomixLeaderElectorCommands.java

示例4: resolve

import io.atomix.catalyst.serializer.SerializerRegistry; //导入依赖的package包/类
@Override
public void resolve(SerializerRegistry registry) {
  for (Map.Entry<Class<? extends Request>, Integer> entry : TYPES.entrySet()) {
    registry.register(entry.getKey(), entry.getValue());
  }
}
 
开发者ID:atomix,项目名称:copycat,代码行数:7,代码来源:ClientRequestTypeResolver.java

示例5: resolve

import io.atomix.catalyst.serializer.SerializerRegistry; //导入依赖的package包/类
@Override
public void resolve(SerializerRegistry registry) {
  for (Map.Entry<Class<? extends Response>, Integer> entry : TYPES.entrySet()) {
    registry.register(entry.getKey(), entry.getValue());
  }
}
 
开发者ID:atomix,项目名称:copycat,代码行数:7,代码来源:ClientResponseTypeResolver.java


注:本文中的io.atomix.catalyst.serializer.SerializerRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。