Interface Publisher

  • All Superinterfaces:
    com.google.api.core.ApiService, com.google.cloud.pubsub.v1.PublisherInterface
    All Known Implementing Classes:
    WrappingPublisher

    public interface Publisher
    extends com.google.cloud.pubsub.v1.PublisherInterface, com.google.api.core.ApiService
    Pub/Sub Lite publishers are streaming based and can experience permanent errors.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.google.api.core.ApiService

        com.google.api.core.ApiService.Listener, com.google.api.core.ApiService.State
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static Publisher create​(PublisherSettings settings)
      Create a new Pub/Sub Lite publisher using the provided settings.
      • Methods inherited from interface com.google.api.core.ApiService

        addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
      • Methods inherited from interface com.google.cloud.pubsub.v1.PublisherInterface

        publish
    • Method Detail

      • create

        static Publisher create​(PublisherSettings settings)
                         throws com.google.api.gax.rpc.ApiException
        Create a new Pub/Sub Lite publisher using the provided settings.
        Throws:
        com.google.api.gax.rpc.ApiException