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,,- Object, - PubSubConsumerState> - io.micronaut.core.bind.ArgumentBinder<Object,,- PubSubConsumerState> - PubSubAnnotatedArgumentBinder<MessageId>,- PubSubArgumentBinder<Object>
@Singleton
public class PubSubMessageIdBinder
extends Object
implements PubSubAnnotatedArgumentBinder<MessageId>
Binds a PubSubMessage Id to the argument. Note that target argument must be of type 
String or else an exception is thrown.- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinderio.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionio.micronaut.core.bind.ArgumentBinder.BindingResult<Object>bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, PubSubConsumerState source) 
- 
Constructor Details- 
PubSubMessageIdBinderpublic PubSubMessageIdBinder()
 
- 
- 
Method Details- 
getAnnotationType- Specified by:
- getAnnotationTypein interface- io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<MessageId,- Object, - PubSubConsumerState> 
 
- 
bindpublic io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, PubSubConsumerState source) - Specified by:
- bindin interface- io.micronaut.core.bind.ArgumentBinder<Object,- PubSubConsumerState> 
 
 
-