Interface GrpcRequest<A extends com.google.protobuf.Message>

Type Parameters:
A - the request message type
All Superinterfaces:
GrpcBaseRequest
All Known Subinterfaces:
GrpcRequest.Streaming<A>, GrpcRequest.Unary<A>

public interface GrpcRequest<A extends com.google.protobuf.Message> extends GrpcBaseRequest

Represents a client gRPC request in a client exchange.

Depending on the kind of exchange considered a gRPC request can be GrpcRequest.Unary when a single message is sent to the endpoint or GrpcRequest.Streaming when a stream of messages is sent to the endpoint.

Once the request has been sent to the endpoint it is no longer possible to modify it resulting in IllegalStateException on such operations.

Since:
1.9
Author:
Jeremy Kuhn