Class WrappingPublisher
- java.lang.Object
-
- com.google.api.core.AbstractApiService
-
- com.google.cloud.pubsublite.internal.ProxyService
-
- com.google.cloud.pubsublite.cloudpubsub.internal.WrappingPublisher
-
- All Implemented Interfaces:
com.google.api.core.ApiService
,com.google.cloud.pubsub.v1.PublisherInterface
,Publisher
public class WrappingPublisher extends ProxyService implements Publisher
-
-
Constructor Summary
Constructors Constructor Description WrappingPublisher(Publisher<MessageMetadata> wirePublisher, MessageTransformer<com.google.pubsub.v1.PubsubMessage,Message> transformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.core.ApiFuture<String>
publish(com.google.pubsub.v1.PubsubMessage message)
-
Methods inherited from class com.google.cloud.pubsublite.internal.ProxyService
addServices, addServices, doStart, doStop, handlePermanentError, onPermanentError, start, stop
-
Methods inherited from class com.google.api.core.AbstractApiService
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync
-
-
-
-
Constructor Detail
-
WrappingPublisher
public WrappingPublisher(Publisher<MessageMetadata> wirePublisher, MessageTransformer<com.google.pubsub.v1.PubsubMessage,Message> transformer) throws com.google.api.gax.rpc.ApiException
- Throws:
com.google.api.gax.rpc.ApiException
-
-
Method Detail
-
publish
public com.google.api.core.ApiFuture<String> publish(com.google.pubsub.v1.PubsubMessage message)
- Specified by:
publish
in interfacecom.google.cloud.pubsub.v1.PublisherInterface
-
-