Annotation Interface MessageConsumer


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface MessageConsumer
Annotation used to tag the Spin to specify the deserializer that implements the interface MessageDeserializer and the schema schema() class to use for the message
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • deserializer

      Class<? extends MessageDeserializer> deserializer
      Returns:
      a MessageDeserializer used to deserialize the message into the class defined on schema(). If not specified the JsonDeserializer will be returned
      Default:
      overit.geocall.event.consumer.JsonDeserializer.class
    • schema

      Class<?> schema
      Returns:
      a schema class for the data transfer object required