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

Type Parameters:
A - the response message type
All Superinterfaces:
GrpcBaseResponse
All Known Subinterfaces:
GrpcResponse.Streaming<A>, GrpcResponse.Unary<A>

public interface GrpcResponse<A extends com.google.protobuf.Message> extends GrpcBaseResponse

Represents a server gRPC response in a server exchange.

Depending on the kind of exchange considered a gRPC response can be GrpcResponse.Unary when a single message is sent to the client or GrpcResponse.Streaming when a stream of messages is sent to the client.

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

Since:
1.9
Author:
Jeremy Kuhn