Annotation Interface GrpcCodec


@Target(TYPE) @Retention(RUNTIME) @Documented @Component public @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 Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Advertised codecs will be listed in the Accept-Encoding header.
    Gets the type of codec the annotated bean should be used for.
  • Element Details

    • advertised

      boolean advertised
      Advertised codecs will be listed in the Accept-Encoding header. Defaults to false.
      Returns:
      True, of the codec should be advertised. False otherwise.
      Default:
      false
    • codecType

      CodecType codecType
      Gets the type of codec the annotated bean should be used for.
      Returns:
      The type of codec.
      Default:
      ALL