For my dubbo based system, I use the API configuration as described here: https://dubbo.apache.org/en/docs/v2.7/user/configuration/api/
Now if I want to set e.g. kryo
serialization on the provider side, I can easily do so when configuring the protocol:
// Protocol
ProtocolConfig protocol = new ProtocolConfig();
protocol.setName("dubbo");
protocol.setPort(12345);
protocol.setSerialization("kryo"); // here
protocol.setThreads(200);
Now my question is: how can I do the same thing on the consumer side?
The ReferenceConfig
does only provide a .setProtocol(String)
method and has no way to set a ProtocolConfig
in the same way possible for ServiceConfig
which has the .setProtocol(ProtocolConfig)
method.
Thanks