Top Description Inners Constructors Methods
io.grpc

public abstract Class ForwardingClientCall<ReqT, RespT>

extends PartialForwardingClientCall<ReqT, RespT>
Class Inheritance
Known Direct Subclasses
io.grpc.ForwardingClientCall.SimpleForwardingClientCall, io.grpc.ClientInterceptors.CheckedForwardingClientCall

A ClientCall which forwards all of its methods to another ClientCall.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
ForwardingClientCall.SimpleForwardingClientCall<ReqT, RespT>

A simplified version of ForwardingClientCall where subclasses can pass in a ClientCall as the delegate.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract ClientCall<ReqT, RespT>
delegate()

Implements abstract io.grpc.PartialForwardingClientCall.delegate.

Returns the delegated ClientCall.
public void
sendMessage(ReqT
message to be sent to the server.
message
)

Implements abstract io.grpc.ClientCall.sendMessage.

Send a request message to the server.
public void
start(ClientCall.Listener<RespT>
receives response messages
responseListener
,
Metadata
which can contain extra call metadata, e.g. authentication credentials.
headers
)

Implements abstract io.grpc.ClientCall.start.

Start a call, using responseListener for processing response messages.
Inherited from io.grpc.PartialForwardingClientCall:
cancelgetAttributeshalfCloseisReadyrequestsetMessageCompressiontoString

Constructor Detail

ForwardingClientCallback to summary
public ForwardingClientCall()

Method Detail

delegateback to summary
protected abstract ClientCall<ReqT, RespT> delegate()

Implements abstract io.grpc.PartialForwardingClientCall.delegate.

Returns the delegated ClientCall.

Annotations
@Override
sendMessageback to summary
public void sendMessage(ReqT message)

Implements abstract io.grpc.ClientCall.sendMessage.

Doc from io.grpc.ClientCall.sendMessage.

Send a request message to the server. May be called zero or more times depending on how many messages the server is willing to accept for the operation.

Parameters
message:ReqT

message to be sent to the server.

Annotations
@Override
startback to summary
public void start(ClientCall.Listener<RespT> responseListener, Metadata headers)

Implements abstract io.grpc.ClientCall.start.

Doc from io.grpc.ClientCall.start.

Start a call, using responseListener for processing response messages.

It must be called prior to any other method on this class, except for cancel which may be called at any time.

Since Metadata is not thread-safe, the caller must not access (read or write) headers after this point.

Parameters
responseListener:ClientCall.Listener<RespT>

receives response messages

headers:Metadata

which can contain extra call metadata, e.g. authentication credentials.

Annotations
@Override
io.grpc back to summary

public abstract Class ForwardingClientCall.SimpleForwardingClientCall<ReqT, RespT>

extends ForwardingClientCall<ReqT, RespT>
Class Inheritance

A simplified version of ForwardingClientCall where subclasses can pass in a ClientCall as the delegate.

Field Summary

Modifier and TypeField and Description
private final ClientCall<ReqT, RespT>

Constructor Summary

AccessConstructor and Description
protected
SimpleForwardingClientCall(ClientCall<ReqT, RespT> delegate)

Method Summary

Modifier and TypeMethod and Description
protected ClientCall<ReqT, RespT>
delegate()

Implements abstract io.grpc.ForwardingClientCall.delegate.

Returns the delegated ClientCall.
Inherited from io.grpc.ForwardingClientCall:
sendMessagestart

Field Detail

delegateback to summary
private final ClientCall<ReqT, RespT> delegate

Constructor Detail

SimpleForwardingClientCallback to summary
protected SimpleForwardingClientCall(ClientCall<ReqT, RespT> delegate)

Method Detail

delegateback to summary
protected ClientCall<ReqT, RespT> delegate()

Implements abstract io.grpc.ForwardingClientCall.delegate.

Doc from io.grpc.ForwardingClientCall.delegate.

Returns the delegated ClientCall.

Annotations
@Override