本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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());
}
}
示例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());
}
}