M
- The message contextT
- The typepublic interface MqttBinder<M,T>
Modifier and Type | Method and Description |
---|---|
java.util.Optional<T> |
bindFrom(M context,
io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext)
Binds the given context and returns an optional value.
|
void |
bindTo(M context,
T value,
io.micronaut.core.type.Argument<T> argument)
Binds the given value to the given context.
|
void bindTo(M context, T value, io.micronaut.core.type.Argument<T> argument)
context
- The message contextvalue
- The argument valueargument
- The publisher argumentjava.util.Optional<T> bindFrom(M context, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext)
context
- The method contextconversionContext
- The argument conversion context