- regs.add(rpcProviderService.registerRpcImplementations(ImmutableClassToInstanceMap.<Rpc<?, ?>>builder()
- .put(StressTest.class, this::stressTest)
- .put(StopStressTest.class, this::stopStressTest)
- .put(RegisterOwnership.class, this::registerOwnership)
- .put(UnregisterOwnership.class, this::unregisterOwnership)
- .put(RegisterLoggingDtcl.class, this::registerLoggingDtcl)
- .put(UnregisterLoggingDtcls.class, this::unregisterLoggingDtcls)
- .put(RegisterCommitCohort.class, this::registerCommitCohort)
- .put(UnregisterCommitCohort.class, this::unregisterCommitCohort)
- .build()));
+ regs.add(rpcProviderService.registerRpcImplementations(
+ (StressTest) this::stressTest,
+ (StopStressTest) this::stopStressTest,
+ (RegisterOwnership) this::registerOwnership,
+ (UnregisterOwnership) this::unregisterOwnership,
+ (RegisterLoggingDtcl) this::registerLoggingDtcl,
+ (UnregisterLoggingDtcls) this::unregisterLoggingDtcls,
+ (RegisterCommitCohort) this::registerCommitCohort,
+ (UnregisterCommitCohort) this::unregisterCommitCohort));