Package io.micronaut.gcp.pubsub.bind
Class SubscriberFactoryConfig
java.lang.Object
io.micronaut.gcp.pubsub.bind.SubscriberFactoryConfig
Holds necessary configuration to create
Subscriber
via SubscriberFactory
.- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
Constructor Summary
ConstructorDescriptionSubscriberFactoryConfig
(com.google.pubsub.v1.ProjectSubscriptionName subscriptionName, com.google.cloud.pubsub.v1.MessageReceiver receiver, String subscriberConfiguration, String defaultExecutor) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.pubsub.v1.MessageReceiver
com.google.pubsub.v1.ProjectSubscriptionName
-
Constructor Details
-
SubscriberFactoryConfig
-
-
Method Details
-
getSubscriptionName
public com.google.pubsub.v1.ProjectSubscriptionName getSubscriptionName()- Returns:
- ProjectSubscriptionName
-
getReceiver
public com.google.cloud.pubsub.v1.MessageReceiver getReceiver()- Returns:
- MessageReceiver to be registered for the created
Subscriber
-
getSubscriberConfiguration
- Returns:
- name of the configuration passed via
Subscription
-
getDefaultExecutor
- Returns:
- default
ExecutorService
set for all subscribers.
-