Class PubSubSubscriberFactoryForEmulator

  • All Implemented Interfaces:
    Serializable, PubSubSubscriberFactory

    public class PubSubSubscriberFactoryForEmulator
    extends Object
    implements PubSubSubscriberFactory
    A convenience PubSubSubscriberFactory that can be used to connect to a PubSub emulator. The PubSub emulators do not support SSL or Credentials and as such this SubscriberStub does not require or provide this.
    See Also:
    Serialized Form
    • Constructor Detail

      • PubSubSubscriberFactoryForEmulator

        public PubSubSubscriberFactoryForEmulator​(String hostAndPort,
                                                  String project,
                                                  String subscription,
                                                  int retries,
                                                  java.time.Duration timeout,
                                                  int maxMessagesPerPull)