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 typeStringor else an exception is thrown.- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
 
- 
- 
Constructor SummaryConstructors Constructor Description PubSubMessageIdBinder()
 - 
Method SummaryAll 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- 
getAnnotationTypepublic java.lang.Class<MessageId> getAnnotationType() - Specified by:
- getAnnotationTypein interface- io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<MessageId,java.lang.Object,PubSubConsumerState>
 
 - 
bindpublic io.micronaut.core.bind.ArgumentBinder.BindingResult<java.lang.Object> bind(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context, PubSubConsumerState source)- Specified by:
- bindin interface- io.micronaut.core.bind.ArgumentBinder<java.lang.Object,PubSubConsumerState>
 
 
- 
 
-