Package io.micronaut.rabbitmq.bind
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
-
Method Summary
Modifier and TypeMethodDescriptionio.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)
-
Constructor Details
-
RabbitChannelBinder
public RabbitChannelBinder()
-
-
Method Details
-
argumentType
public io.micronaut.core.type.Argument<com.rabbitmq.client.Channel> argumentType()- Specified by:
argumentType
in interfaceio.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 interfaceio.micronaut.core.bind.ArgumentBinder<com.rabbitmq.client.Channel,
RabbitConsumerState>
-