Interface Subscriber

All Superinterfaces:
com.google.api.core.ApiService, com.google.cloud.pubsub.v1.SubscriberInterface
All Known Implementing Classes:
AssigningSubscriber, MultiPartitionSubscriber, SinglePartitionSubscriber

public interface Subscriber extends com.google.cloud.pubsub.v1.SubscriberInterface
A sub-interface of SubscriberInterface.
  • 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 Subscriber
    Create a new Pub/Sub Lite subscriber using the provided settings.

    Methods inherited from interface com.google.api.core.ApiService

    addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
  • Method Details

    • create

      static Subscriber create(SubscriberSettings settings) throws com.google.api.gax.rpc.ApiException
      Create a new Pub/Sub Lite subscriber using the provided settings.
      Throws:
      com.google.api.gax.rpc.ApiException