Class SubscriberFactoryConfig

java.lang.Object
io.micronaut.gcp.pubsub.bind.SubscriberFactoryConfig

public class SubscriberFactoryConfig extends Object
Holds necessary configuration to create Subscriber via SubscriberFactory.
Since:
2.0.0
Author:
Vinicius Carvalho
  • Constructor Details

    • SubscriberFactoryConfig

      public SubscriberFactoryConfig(com.google.pubsub.v1.ProjectSubscriptionName subscriptionName, com.google.cloud.pubsub.v1.MessageReceiver receiver, String subscriberConfiguration, String defaultExecutor)
  • 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

      public String getSubscriberConfiguration()
      Returns:
      name of the configuration passed via Subscription
    • getDefaultExecutor

      public String getDefaultExecutor()
      Returns:
      default ExecutorService set for all subscribers.