@Singleton public class PubSubBodyBinder extends java.lang.Object implements PubSubAnnotatedArgumentBinder<io.micronaut.messaging.annotation.Body>
Body
and uses the appropriate
PubSubMessageSerDes
to deserialize the contents of the PubSubMessage data.Constructor and Description |
---|
PubSubBodyBinder(PubSubMessageSerDesRegistry serDesRegistry) |
Modifier and Type | Method and Description |
---|---|
io.micronaut.core.bind.ArgumentBinder.BindingResult<java.lang.Object> |
bind(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context,
PubSubConsumerState state) |
java.lang.Class<io.micronaut.messaging.annotation.Body> |
getAnnotationType() |
public PubSubBodyBinder(PubSubMessageSerDesRegistry serDesRegistry)
public java.lang.Class<io.micronaut.messaging.annotation.Body> getAnnotationType()
getAnnotationType
in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.Body,java.lang.Object,PubSubConsumerState>
public io.micronaut.core.bind.ArgumentBinder.BindingResult<java.lang.Object> bind(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context, PubSubConsumerState state)
bind
in interface io.micronaut.core.bind.ArgumentBinder<java.lang.Object,PubSubConsumerState>