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 MethodsModifier and TypeMethodDescriptionstatic Subscribercreate(SubscriberSettings settings) 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
Create a new Pub/Sub Lite subscriber using the provided settings.- Throws:
com.google.api.gax.rpc.ApiException
-