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.Duration
GRPC_MAX_TIMEOUT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentCodec
requestEncoding()
ContentCodec
to use for the associated gRPC method.GrpcExecutionStrategy
strategy()
GrpcExecutionStrategy
to use for the associated gRPC method.java.time.Duration
timeout()
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()
GrpcExecutionStrategy
to use for the associated gRPC method.- Returns:
GrpcExecutionStrategy
to use for the associated gRPC method.
-
requestEncoding
ContentCodec requestEncoding()
ContentCodec
to use for the associated gRPC method.- Returns:
ContentCodec
to use for the associated gRPC method.
-
timeout
@Nullable java.time.Duration timeout()
Returns timeout duration after which the response is no longer wanted.- Returns:
Duration
of associated timeout or null for no timeout- See Also:
- gRPC Deadlines
-
-