Class PubSubBodyBinder

  • All Implemented Interfaces:
    io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.Body,​java.lang.Object,​PubSubConsumerState>, io.micronaut.core.bind.ArgumentBinder<java.lang.Object,​PubSubConsumerState>, PubSubAnnotatedArgumentBinder<io.micronaut.messaging.annotation.Body>, PubSubArgumentBinder<java.lang.Object>

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

      • Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder

        io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getAnnotationType

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

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