public class WrappingPublisher extends ProxyService implements Publisher
| Constructor and Description |
|---|
WrappingPublisher(Publisher<PublishMetadata> wirePublisher,
MessageTransformer<com.google.pubsub.v1.PubsubMessage,Message> transformer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handlePermanentError(io.grpc.StatusException error) |
com.google.api.core.ApiFuture<String> |
publish(com.google.pubsub.v1.PubsubMessage message) |
protected void |
start() |
protected void |
stop() |
addServices, addServices, doStart, doStop, onPermanentErroraddListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsyncpublic WrappingPublisher(Publisher<PublishMetadata> wirePublisher, MessageTransformer<com.google.pubsub.v1.PubsubMessage,Message> transformer) throws io.grpc.StatusException
io.grpc.StatusExceptionprotected void start()
start in class ProxyServiceprotected void stop()
stop in class ProxyServiceprotected void handlePermanentError(io.grpc.StatusException error)
handlePermanentError in class ProxyServicepublic com.google.api.core.ApiFuture<String> publish(com.google.pubsub.v1.PubsubMessage message)
publish in interface com.google.cloud.pubsub.v1.PublisherInterfaceCopyright © 2020 Google LLC. All rights reserved.