Package io.grpc
Class ForwardingClientCallListener<RespT>
- java.lang.Object
-
- io.grpc.ClientCall.Listener<RespT>
-
- io.grpc.PartialForwardingClientCallListener<RespT>
-
- io.grpc.ForwardingClientCallListener<RespT>
-
- Direct Known Subclasses:
ForwardingClientCallListener.SimpleForwardingClientCallListener
public abstract class ForwardingClientCallListener<RespT> extends PartialForwardingClientCallListener<RespT>
AClientCall.Listener
which forwards all of its methods to anotherClientCall.Listener
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ForwardingClientCallListener.SimpleForwardingClientCallListener<RespT>
A simplified version ofForwardingClientCallListener
where subclasses can pass in aClientCall.Listener
as the delegate.
-
Constructor Summary
Constructors Constructor Description ForwardingClientCallListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ClientCall.Listener<RespT>
delegate()
Returns the delegatedClientCall.Listener
.void
onMessage(RespT message)
A response message has been received.-
Methods inherited from class io.grpc.PartialForwardingClientCallListener
onClose, onHeaders, onReady, toString
-
-
-
-
Method Detail
-
delegate
protected abstract ClientCall.Listener<RespT> delegate()
Returns the delegatedClientCall.Listener
.- Specified by:
delegate
in classPartialForwardingClientCallListener<RespT>
-
onMessage
public void onMessage(RespT message)
Description copied from class:ClientCall.Listener
A response message has been received. May be called zero or more times depending on whether the call response is empty, a single message or a stream of messages.- Overrides:
onMessage
in classClientCall.Listener<RespT>
- Parameters:
message
- returned by the server
-
-