public class ObserverToClientCallListenerAdapter extends Object implements ClientCall.Listener
| 构造器和说明 |
|---|
ObserverToClientCallListenerAdapter(org.apache.dubbo.common.stream.StreamObserver<Object> delegate) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onClose(TriRpcStatus status,
Map<String,Object> trailers)
Callback when call is finished.
|
void |
onMessage(Object message)
Callback when message received.
|
void |
onStart(ClientCall call)
Called when the call is started, user can use this to set some configurations.
|
void |
setOnStartConsumer(Consumer<ClientCall> onStartConsumer) |
public ObserverToClientCallListenerAdapter(org.apache.dubbo.common.stream.StreamObserver<Object> delegate)
public void setOnStartConsumer(Consumer<ClientCall> onStartConsumer)
public void onMessage(Object message)
ClientCall.ListeneronMessage 在接口中 ClientCall.Listenermessage - message receivedpublic void onClose(TriRpcStatus status, Map<String,Object> trailers)
ClientCall.ListeneronClose 在接口中 ClientCall.Listenerstatus - response statustrailers - response trailerspublic void onStart(ClientCall call)
ClientCall.ListeneronStart 在接口中 ClientCall.Listenercall - call implementationCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.