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 MethodsModifier and TypeMethodDescriptionstatic Publishercreate(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, stopAsyncMethods inherited from interface com.google.cloud.pubsub.v1.PublisherInterface
publish
-
Method Details
-
create
Create a new Pub/Sub Lite publisher using the provided settings.- Throws:
com.google.api.gax.rpc.ApiException
-