Annotation Type Codec


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface Codec
Defines which implementation payloads (input/output) are serialized with.
  • Element Details

    • encoder

      Class<? extends Encoder>[] encoder
      Returns:
      the encoder to use to create the payload sent to the server.
      Default:
      {}
    • decoder

      Class<? extends Decoder>[] decoder
      Returns:
      the decoder payload used to read the response.
      Default:
      {}