Package net.devh.boot.grpc.common.codec
Annotation Interface GrpcCodec
Annotation that marks gRPC codecs that should be registered with a gRPC server. This annotation should only be added
to beans that implement
Codec
.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Advertised codecs will be listed in theAccept-Encoding
header.Gets the type of codec the annotated bean should be used for.
-
Element Details
-
advertised
boolean advertisedAdvertised codecs will be listed in theAccept-Encoding
header. Defaults to false.- Returns:
- True, of the codec should be advertised. False otherwise.
- Default:
- false
-
codecType
CodecType codecTypeGets the type of codec the annotated bean should be used for.- Returns:
- The type of codec.
- Default:
- ALL
-