@Singleton public class PubSubConsumerAdvice extends java.lang.Object implements io.micronaut.context.processor.ExecutableMethodProcessor<PubSubListener>
ExecutableMethodProcessor
that creates
MessageReceiver
that subscribes to the PubSub subscription
and invoke methods annotated by @Subscription
.
There can be only one subscriber for any given subscription (in order to avoid issues with message
Ack control). Having more than one method using the same subscription raises a PubSubListenerException
.
Constructor and Description |
---|
PubSubConsumerAdvice(io.micronaut.context.BeanContext beanContext,
io.micronaut.core.convert.ConversionService<?> conversionService,
PubSubMessageSerDesRegistry serDesRegistry,
SubscriberFactory subscriberFactory,
GoogleCloudConfiguration googleCloudConfiguration,
PubSubConfigurationProperties pubSubConfigurationProperties,
PubSubBinderRegistry binderRegistry,
PubSubMessageReceiverExceptionHandler exceptionHandler) |
Modifier and Type | Method and Description |
---|---|
void |
process(io.micronaut.inject.BeanDefinition<?> beanDefinition,
io.micronaut.inject.ExecutableMethod<?,?> method) |
public PubSubConsumerAdvice(io.micronaut.context.BeanContext beanContext, io.micronaut.core.convert.ConversionService<?> conversionService, PubSubMessageSerDesRegistry serDesRegistry, SubscriberFactory subscriberFactory, GoogleCloudConfiguration googleCloudConfiguration, PubSubConfigurationProperties pubSubConfigurationProperties, PubSubBinderRegistry binderRegistry, PubSubMessageReceiverExceptionHandler exceptionHandler)
public void process(io.micronaut.inject.BeanDefinition<?> beanDefinition, io.micronaut.inject.ExecutableMethod<?,?> method)
process
in interface io.micronaut.context.processor.AnnotationProcessor<PubSubListener,io.micronaut.inject.ExecutableMethod<?,?>>
process
in interface io.micronaut.context.processor.ExecutableMethodProcessor<PubSubListener>