@Singleton public class RetainedMqttBinder extends java.lang.Object implements AnnotatedMqttBinder<MqttBindingContext<?>,Retained>
Retained
.Constructor and Description |
---|
RetainedMqttBinder(io.micronaut.core.convert.ConversionService<?> conversionService) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.Object> |
bindFrom(MqttBindingContext<?> message,
io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> conversionContext)
Binds the given context and returns an optional value.
|
void |
bindTo(MqttBindingContext<?> message,
java.lang.Object value,
io.micronaut.core.type.Argument<java.lang.Object> argument)
Binds the given value to the given context.
|
java.lang.Class<Retained> |
getAnnotationType() |
public RetainedMqttBinder(io.micronaut.core.convert.ConversionService<?> conversionService)
public java.lang.Class<Retained> getAnnotationType()
getAnnotationType
in interface AnnotatedMqttBinder<MqttBindingContext<?>,Retained>
public void bindTo(MqttBindingContext<?> message, java.lang.Object value, io.micronaut.core.type.Argument<java.lang.Object> argument)
MqttBinder
bindTo
in interface MqttBinder<MqttBindingContext<?>,java.lang.Object>
message
- The message contextvalue
- The argument valueargument
- The publisher argumentpublic java.util.Optional<java.lang.Object> bindFrom(MqttBindingContext<?> message, io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> conversionContext)
MqttBinder
bindFrom
in interface MqttBinder<MqttBindingContext<?>,java.lang.Object>
message
- The method contextconversionContext
- The argument conversion context