Interface PublisherFactory

All Known Implementing Classes:
CachingPublisherFactory, DefaultPublisherFactory

public interface PublisherFactory
The publisher factory interface that can create publishers.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.cloud.pubsub.v1.Publisher
    Creates a Publisher for a given topic.
  • Method Details

    • createPublisher

      com.google.cloud.pubsub.v1.Publisher createPublisher(String topic)
      Creates a Publisher for a given topic.
      Parameters:
      topic - destination topic
      Returns:
      fully configured publisher