Package io.servicetalk.grpc.api
Interface GrpcClientMetadata
-
- All Superinterfaces:
GrpcMetadata
- All Known Implementing Classes:
DefaultGrpcClientMetadata
public interface GrpcClientMetadata extends GrpcMetadata
Metadata for a gRPC client call.
-
-
Field Summary
Fields Modifier and Type Field Description static java.time.DurationGRPC_MAX_TIMEOUT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentCodecrequestEncoding()ContentCodecto use for the associated gRPC method.GrpcExecutionStrategystrategy()GrpcExecutionStrategyto use for the associated gRPC method.java.time.Durationtimeout()Returns timeout duration after which the response is no longer wanted.-
Methods inherited from interface io.servicetalk.grpc.api.GrpcMetadata
path
-
-
-
-
Method Detail
-
strategy
@Nullable GrpcExecutionStrategy strategy()
GrpcExecutionStrategyto use for the associated gRPC method.- Returns:
GrpcExecutionStrategyto use for the associated gRPC method.
-
requestEncoding
ContentCodec requestEncoding()
ContentCodecto use for the associated gRPC method.- Returns:
ContentCodecto use for the associated gRPC method.
-
timeout
@Nullable java.time.Duration timeout()
Returns timeout duration after which the response is no longer wanted.- Returns:
Durationof associated timeout or null for no timeout- See Also:
- gRPC Deadlines
-
-