Package io.servicetalk.grpc.api
Class DefaultGrpcClientMetadata
- java.lang.Object
-
- io.servicetalk.grpc.api.DefaultGrpcClientMetadata
-
- All Implemented Interfaces:
GrpcClientMetadata,GrpcMetadata
public class DefaultGrpcClientMetadata extends java.lang.Object implements GrpcClientMetadata
Default implementation forDefaultGrpcClientMetadata.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultGrpcClientMetadata(java.lang.String path)Creates a new instance.protectedDefaultGrpcClientMetadata(java.lang.String path, ContentCodec requestEncoding)protectedDefaultGrpcClientMetadata(java.lang.String path, GrpcExecutionStrategy strategy)Creates a new instance.protectedDefaultGrpcClientMetadata(java.lang.String path, GrpcExecutionStrategy strategy, ContentCodec requestEncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringpath()Returns the path for the associated gRPC method.ContentCodecrequestEncoding()ContentCodecto use for the associated gRPC method.GrpcExecutionStrategystrategy()GrpcExecutionStrategyto use for the associated gRPC method.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.servicetalk.grpc.api.GrpcMetadata
path
-
-
-
-
Constructor Detail
-
DefaultGrpcClientMetadata
protected DefaultGrpcClientMetadata(java.lang.String path)
Creates a new instance.- Parameters:
path- for the associated gRPC method.
-
DefaultGrpcClientMetadata
protected DefaultGrpcClientMetadata(java.lang.String path, ContentCodec requestEncoding)
-
DefaultGrpcClientMetadata
protected DefaultGrpcClientMetadata(java.lang.String path, @Nullable GrpcExecutionStrategy strategy)Creates a new instance.- Parameters:
path- for the associated gRPC method.strategy-GrpcExecutionStrategyto use for the associated gRPC method.
-
DefaultGrpcClientMetadata
protected DefaultGrpcClientMetadata(java.lang.String path, @Nullable GrpcExecutionStrategy strategy, ContentCodec requestEncoding)
-
-
Method Detail
-
strategy
public final GrpcExecutionStrategy strategy()
Description copied from interface:GrpcClientMetadataGrpcExecutionStrategyto use for the associated gRPC method.- Specified by:
strategyin interfaceGrpcClientMetadata- Returns:
GrpcExecutionStrategyto use for the associated gRPC method.
-
requestEncoding
public ContentCodec requestEncoding()
Description copied from interface:GrpcClientMetadataContentCodecto use for the associated gRPC method.- Specified by:
requestEncodingin interfaceGrpcClientMetadata- Returns:
ContentCodecto use for the associated gRPC method.
-
path
public java.lang.String path()
Description copied from interface:GrpcMetadataReturns the path for the associated gRPC method.- Specified by:
pathin interfaceGrpcMetadata- Returns:
- The path for the associated gRPC method.
-
-