1
是否有可能調用服務器上的服務方法,從客戶端,如:春天,如何決定客戶端應該服務哪個用戶?
someServiceHolder.getService(MyService.class).runMethodOnServerWithConsumer("myConsumerService#consumerA")
當時的方法:
public void runMethodOnServerWithConsumer(String consumerMethodName) {
Consumer<Object> consumerA = somehowGetConsumerInstance(consumerMethodName);
consumerA.accept(doSomething());
}
它也許不是僅僅涉及到春天。也許更一般地說,如何解決序列化方法的不可能性?