Package io.micronaut.gcp.pubsub.bind
Class PubSubMessageIdBinder
- java.lang.Object
-
- io.micronaut.gcp.pubsub.bind.PubSubMessageIdBinder
-
- All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<MessageId,java.lang.Object,PubSubConsumerState>
,io.micronaut.core.bind.ArgumentBinder<java.lang.Object,PubSubConsumerState>
,PubSubAnnotatedArgumentBinder<MessageId>
,PubSubArgumentBinder<java.lang.Object>
@Singleton public class PubSubMessageIdBinder extends java.lang.Object implements PubSubAnnotatedArgumentBinder<MessageId>
Binds a PubSubMessage Id to the argument. Note that target argument must be of typeString
or else an exception is thrown.- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
-
Constructor Summary
Constructors Constructor Description PubSubMessageIdBinder()
-
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 source)
java.lang.Class<MessageId>
getAnnotationType()
-
-
-
Method Detail
-
getAnnotationType
public java.lang.Class<MessageId> getAnnotationType()
- Specified by:
getAnnotationType
in interfaceio.micronaut.core.bind.annotation.AnnotatedArgumentBinder<MessageId,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 source)
- Specified by:
bind
in interfaceio.micronaut.core.bind.ArgumentBinder<java.lang.Object,PubSubConsumerState>
-
-