Class PubSubBodyBinder

java.lang.Object
io.micronaut.gcp.pubsub.bind.PubSubBodyBinder
All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody,Object,PubSubConsumerState>, io.micronaut.core.bind.ArgumentBinder<Object,PubSubConsumerState>, PubSubAnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody>, PubSubArgumentBinder<Object>

@Singleton public class PubSubBodyBinder extends Object implements PubSubAnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody>
Binds arguments annotated with MessageBody and uses the appropriate PubSubMessageSerDes to deserialize the contents of the PubSubMessage data.
Since:
2.0.0
Author:
Vinicius Carvalho
  • Constructor Details

  • Method Details

    • getAnnotationType

      public Class<io.micronaut.messaging.annotation.MessageBody> getAnnotationType()
      Specified by:
      getAnnotationType in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody,Object,PubSubConsumerState>
    • bind

      public io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, PubSubConsumerState state)
      Specified by:
      bind in interface io.micronaut.core.bind.ArgumentBinder<Object,PubSubConsumerState>