Package io.micronaut.mqtt.annotation.v5
Annotation Interface MqttProperty
@Documented
@Retention(RUNTIME)
@Target({PARAMETER,TYPE,METHOD})
@Repeatable(MqttProperties.class)
@Bindable
public @interface MqttProperty
Used for binding arguments to mqtt properties.
- Since:
- 1.0.0
- Author:
- James Kleeh
-
Optional Element Summary
-
Element Details
-
value
String valueIf used as a bound parameter, this is the property name. If used on a class level this is value and not the property name.- Returns:
- The name of the property, otherwise it is inferred from the
name()
- Default:
- ""
-
name
String nameNever used if applied to a parameter. Supplies the property name if used on a class or method.- Returns:
- The name of property
- Default:
- ""
-