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 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.bind.ArgumentBinder.BindingResult<Object>
bind
(io.micronaut.core.convert.ArgumentConversionContext<Object> context, PubSubConsumerState source)
-
Constructor Details
-
PubSubMessageIdBinder
public PubSubMessageIdBinder()
-
-
Method Details
-
getAnnotationType
- Specified by:
getAnnotationType
in interfaceio.micronaut.core.bind.annotation.AnnotatedArgumentBinder<MessageId,
Object, PubSubConsumerState>
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, PubSubConsumerState source) - Specified by:
bind
in interfaceio.micronaut.core.bind.ArgumentBinder<Object,
PubSubConsumerState>
-