flyhawk1010 commented on issue #14546:
URL: https://github.com/apache/dubbo/issues/14546#issuecomment-2342568781
// generic invoke
GenericService genericService = bootstrap.getCache().get(reference);
StreamObserver<String> responseObserver = new StreamObserver<String>() {
@Override
public void onNext(String data) {
}
@Override
public void onError(Throwable throwable) {
}
@Override
public void onCompleted() {
}
};
while (true) {
try {
Object genericInvokeResult =
genericService.$invoke("sayHello",
new String[]
{String.class.getName(),StreamObserver.class.getName()},
new Object[] {param,responseObserver});
System.out.println(genericInvokeResult);
Thread.sleep(1000);
} catch (Exception e) {
e.printStackTrace();
}
}
@JunJieLiu51520 I have this requirement, how can it be implemented?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]