Interface SubscriberFactory

All Known Implementing Classes:
DefaultSubscriberFactory

public interface SubscriberFactory
Factory to create SubscriberInterface using default configurations.
Since:
2.0.0
Author:
Vinicius Carvalho
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.cloud.pubsub.v1.SubscriberInterface
    Creates an SubscriberInterface implementation and register the receiver to it.
  • Method Details

    • createSubscriber

      com.google.cloud.pubsub.v1.SubscriberInterface createSubscriber(SubscriberFactoryConfig config)
      Creates an SubscriberInterface implementation and register the receiver to it. Implementations should also handle start/stop life cycle events.
      Parameters:
      config - Configuration to create Subscriber instances.
      Returns:
      An implementation of SubscriberInterface