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 protected
DefaultGrpcClientMetadata(java.lang.String path)
Creates a new instance.protected
DefaultGrpcClientMetadata(java.lang.String path, ContentCodec requestEncoding)
protected
DefaultGrpcClientMetadata(java.lang.String path, GrpcExecutionStrategy strategy)
Creates a new instance.protected
DefaultGrpcClientMetadata(java.lang.String path, GrpcExecutionStrategy strategy, ContentCodec requestEncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
path()
Returns the path for the associated gRPC method.ContentCodec
requestEncoding()
ContentCodec
to use for the associated gRPC method.GrpcExecutionStrategy
strategy()
GrpcExecutionStrategy
to 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
-GrpcExecutionStrategy
to 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:GrpcClientMetadata
GrpcExecutionStrategy
to use for the associated gRPC method.- Specified by:
strategy
in interfaceGrpcClientMetadata
- Returns:
GrpcExecutionStrategy
to use for the associated gRPC method.
-
requestEncoding
public ContentCodec requestEncoding()
Description copied from interface:GrpcClientMetadata
ContentCodec
to use for the associated gRPC method.- Specified by:
requestEncoding
in interfaceGrpcClientMetadata
- Returns:
ContentCodec
to use for the associated gRPC method.
-
path
public java.lang.String path()
Description copied from interface:GrpcMetadata
Returns the path for the associated gRPC method.- Specified by:
path
in interfaceGrpcMetadata
- Returns:
- The path for the associated gRPC method.
-
-