Class RabbitChannelBinder

java.lang.Object
io.micronaut.rabbitmq.bind.RabbitChannelBinder
All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinder<com.rabbitmq.client.Channel,RabbitConsumerState>, io.micronaut.core.bind.TypeArgumentBinder<com.rabbitmq.client.Channel,RabbitConsumerState>, RabbitArgumentBinder<com.rabbitmq.client.Channel>, RabbitTypeArgumentBinder<com.rabbitmq.client.Channel>

@Singleton public class RabbitChannelBinder extends Object implements RabbitTypeArgumentBinder<com.rabbitmq.client.Channel>
Binds an argument of type Channel from the RabbitConsumerState.
Since:
1.1.0
Author:
James Kleeh
  • Nested Class Summary

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

    io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.core.type.Argument<com.rabbitmq.client.Channel>
     
    io.micronaut.core.bind.ArgumentBinder.BindingResult<com.rabbitmq.client.Channel>
    bind(io.micronaut.core.convert.ArgumentConversionContext<com.rabbitmq.client.Channel> context, RabbitConsumerState messageState)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RabbitChannelBinder

      public RabbitChannelBinder()
  • Method Details

    • argumentType

      public io.micronaut.core.type.Argument<com.rabbitmq.client.Channel> argumentType()
      Specified by:
      argumentType in interface io.micronaut.core.bind.TypeArgumentBinder<com.rabbitmq.client.Channel,RabbitConsumerState>
    • bind

      public io.micronaut.core.bind.ArgumentBinder.BindingResult<com.rabbitmq.client.Channel> bind(io.micronaut.core.convert.ArgumentConversionContext<com.rabbitmq.client.Channel> context, RabbitConsumerState messageState)
      Specified by:
      bind in interface io.micronaut.core.bind.ArgumentBinder<com.rabbitmq.client.Channel,RabbitConsumerState>